[−][src]Struct moore_common::lexer::StackedLexer
A lexer chaining the tokens of multiple other lexers after another. Lexers can be pushed onto an internal stack and will then be queried for tokens until their respective Eof has been reached. At that point, the lexer is popped off the stack and the next lexer's tokens are produced. An Eof is returned once all lexers have been drained.
Implementations
impl<T> StackedLexer<T>
[src]
Trait Implementations
impl<T: Clone + PartialEq> Lexer<T> for StackedLexer<T>
[src]
fn next_token<'td>(&mut self) -> DiagResult<'td, T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for StackedLexer<T>
impl<T> !Send for StackedLexer<T>
impl<T> !Sync for StackedLexer<T>
impl<T> Unpin for StackedLexer<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for StackedLexer<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,