pub struct Lexer {
pub vis: Visibility,
pub name: Ident,
pub ty: Option<Type>,
pub inputs: Punctuated<PatType, Comma>,
pub rules: Vec<LexerRule>,
}
Expand description
Lexer ::= Vis Name ('(' Parameter* ')')? ('->' Type)? '{' LexerRule+ '}'
Fields§
§vis: Visibility
§name: Ident
§ty: Option<Type>
§inputs: Punctuated<PatType, Comma>
§rules: Vec<LexerRule>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lexer
impl RefUnwindSafe for Lexer
impl !Send for Lexer
impl !Sync for Lexer
impl Unpin for Lexer
impl UnwindSafe for Lexer
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