pub struct TypeLexer<'input> { /* private fields */ }Implementations§
Source§impl<'input> TypeLexer<'input>
impl<'input> TypeLexer<'input>
pub fn new(input: Input<'input>) -> TypeLexer<'input>
pub fn has_reached_eof(&self) -> bool
pub fn current_position(&self) -> Position
Sourcepub fn slice_in_range(&self, from: usize, to: usize) -> &'input str
pub fn slice_in_range(&self, from: usize, to: usize) -> &'input str
Returns a string slice within a specified absolute range.
This method exposes the underlying Input::slice_in_range functionality but
returns a &str instead of a &[u8]. It assumes the source is valid UTF-8.
§Arguments
from- The absolute starting byte offset.to- The absolute ending byte offset (exclusive).
pub fn advance(&mut self) -> Option<Result<TypeToken<'input>, SyntaxError>>
Trait Implementations§
Auto Trait Implementations§
impl<'input> Freeze for TypeLexer<'input>
impl<'input> RefUnwindSafe for TypeLexer<'input>
impl<'input> Send for TypeLexer<'input>
impl<'input> Sync for TypeLexer<'input>
impl<'input> Unpin for TypeLexer<'input>
impl<'input> UnwindSafe for TypeLexer<'input>
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