pub struct LexerBuilder<'s, TokenType> {
pub actions: Vec<LexAction<'s, TokenType>>,
}Expand description
Struct used to generate a Lexer
It can either be initialised with an array of LexActions, or using the push method(recommended).
Fields§
§actions: Vec<LexAction<'s, TokenType>>List of all tokens including conversions used by the resulting Lexer
Implementations§
Source§impl<'s, TokenType> LexerBuilder<'s, TokenType>
impl<'s, TokenType> LexerBuilder<'s, TokenType>
Trait Implementations§
Source§impl<'s, TokenType: Default> Default for LexerBuilder<'s, TokenType>
impl<'s, TokenType: Default> Default for LexerBuilder<'s, TokenType>
Source§fn default() -> LexerBuilder<'s, TokenType>
fn default() -> LexerBuilder<'s, TokenType>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'s, TokenType> Freeze for LexerBuilder<'s, TokenType>
impl<'s, TokenType> RefUnwindSafe for LexerBuilder<'s, TokenType>
impl<'s, TokenType> Send for LexerBuilder<'s, TokenType>
impl<'s, TokenType> Sync for LexerBuilder<'s, TokenType>
impl<'s, TokenType> Unpin for LexerBuilder<'s, TokenType>
impl<'s, TokenType> UnwindSafe for LexerBuilder<'s, TokenType>
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