pub trait LogosIter<'source, T>: Iterator<Item = T>where
T: Logos<'source>,{
// Required methods
fn span(&self) -> Span;
fn slice(&self) -> &'source <T::Source as Source>::Slice;
fn source(&self) -> &'source T::Source;
fn remainder(&self) -> &'source <T::Source as Source>::Slice;
fn bump(&mut self, n: usize);
fn extras(&self) -> &T::Extras;
fn extras_mut(&mut self) -> &mut T::Extras;
// Provided method
fn peekable_lexer(self) -> PeekableLexer<'source, Self, T> ⓘ
where Self: Sized { ... }
}Required Methods§
fn span(&self) -> Span
fn slice(&self) -> &'source <T::Source as Source>::Slice
fn source(&self) -> &'source T::Source
fn remainder(&self) -> &'source <T::Source as Source>::Slice
fn bump(&mut self, n: usize)
fn extras(&self) -> &T::Extras
fn extras_mut(&mut self) -> &mut T::Extras
Provided Methods§
Sourcefn peekable_lexer(self) -> PeekableLexer<'source, Self, T> ⓘwhere
Self: Sized,
fn peekable_lexer(self) -> PeekableLexer<'source, Self, T> ⓘwhere
Self: Sized,
See PeekableLexer.