pub trait ParserSource {
    // Required methods
    fn src(&self) -> &str;
    fn start_index(&self) -> BytePos;

    // Provided method
    fn span(&self) -> Span<BytePos> { ... }
}

Required Methods§

source

fn src(&self) -> &str

source

fn start_index(&self) -> BytePos

Provided Methods§

source

fn span(&self) -> Span<BytePos>

Implementations on Foreign Types§

source§

impl ParserSource for str

source§

fn src(&self) -> &str

source§

fn start_index(&self) -> BytePos

source§

impl ParserSource for FileMap

source§

fn src(&self) -> &str

source§

fn start_index(&self) -> BytePos

source§

impl<'a, S> ParserSource for &'a S
where S: ?Sized + ParserSource,

source§

fn src(&self) -> &str

source§

fn start_index(&self) -> BytePos

Implementors§