Trait ParserSource
tremor_script::lexer
pub trait ParserSource { fn src(&self) -> &str; fn start_index(&self) -> BytePos; }
Source for a parser
fn src(&self) -> &str
The source as a str
fn start_index(&self) -> BytePos
the initial index
impl ParserSource for str