pub struct Lexer { /* private fields */ }Expand description
XPath expression lexer.
Produces a stream of tokens from an XPath expression string.
Implementations§
Source§impl Lexer
impl Lexer
Sourcepub fn token_starts(&self) -> &[usize]
pub fn token_starts(&self) -> &[usize]
Byte offsets at which each produced token starts (parallel to the caller’s token stream).
Sourcepub fn next_token(&mut self) -> Token
pub fn next_token(&mut self) -> Token
Get the next token.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lexer
impl RefUnwindSafe for Lexer
impl Send for Lexer
impl Sync for Lexer
impl Unpin for Lexer
impl UnsafeUnpin for Lexer
impl UnwindSafe for Lexer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more