pub struct Lexer<T: Grinder<Item = Option<u8>, Error = DiagBuilder2>> { /* private fields */ }
Expand description
A VHDL lexer. Converts a stream of bytes to VHDL tokens. Emits errors backwards up the pipeline.
Implementations§
Trait Implementations§
Source§impl<T> Grinder for Lexer<T>
impl<T> Grinder for Lexer<T>
type Item = Option<Spanned<Token>>
type Error = DiagBuilder2
fn next(&mut self) -> Self::Item
fn emit(&mut self, err: Self::Error)
fn vent<F, E>(self, f: F) -> Vent<Self, F, E>
fn unwrap(self) -> Unwrap<Self>where
Self: Sized,
fn map_err<F, E>(self, f: F) -> MapErrGrinder<Self, F, E>
fn peekable(self) -> Peekable<Self>where
Self: Sized,
fn lookaheadable(self) -> Lookahead<Self>where
Self: Sized,
fn filter<F>(self, f: F) -> Filter<Self, F>
Auto Trait Implementations§
impl<T> Freeze for Lexer<T>where
T: Freeze,
impl<T> RefUnwindSafe for Lexer<T>where
T: RefUnwindSafe,
impl<T> Send for Lexer<T>where
T: Send,
impl<T> Sync for Lexer<T>where
T: Sync,
impl<T> Unpin for Lexer<T>where
T: Unpin,
impl<T> UnwindSafe for Lexer<T>where
T: UnwindSafe,
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