pub struct LexerBuilder<'r, T> { /* private fields */ }Implementations§
Source§impl<'r, T> LexerBuilder<'r, T>
impl<'r, T> LexerBuilder<'r, T>
pub fn token( self, re: &'r str, cons: Box<dyn Fn(&str) -> T>, escape: bool, ) -> Self
pub fn skip(self, re: &'r str) -> Self
pub fn eof(self, kind: Box<dyn Fn(&str) -> T>) -> Self
pub fn error(self, kind: Box<dyn Fn(&str) -> T>) -> Self
pub fn build(self) -> Result<Lexer<T>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'r, T> Freeze for LexerBuilder<'r, T>
impl<'r, T> !RefUnwindSafe for LexerBuilder<'r, T>
impl<'r, T> !Send for LexerBuilder<'r, T>
impl<'r, T> !Sync for LexerBuilder<'r, T>
impl<'r, T> Unpin for LexerBuilder<'r, T>
impl<'r, T> !UnwindSafe for LexerBuilder<'r, T>
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