pub struct LexerRule {
pub kind: String,
pub start: CharClass,
pub cont: CharClass,
}Expand description
A lexer rule: a name, a start class, and a continuation class.
Fields§
§kind: StringName of the token kind produced
start: CharClassCharacter class for the first character
cont: CharClassCharacter class for continuation characters
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LexerRule
impl RefUnwindSafe for LexerRule
impl Send for LexerRule
impl Sync for LexerRule
impl Unpin for LexerRule
impl UnsafeUnpin for LexerRule
impl UnwindSafe for LexerRule
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