pub struct LexerConfig {
pub parse_interpolation: bool,
pub track_positions: bool,
pub max_lookahead: usize,
}Expand description
Configuration for the lexer
Fields§
§parse_interpolation: boolEnable interpolation parsing in strings
track_positions: boolTrack token positions for error reporting
max_lookahead: usizeMaximum lookahead for disambiguation
Trait Implementations§
Source§impl Clone for LexerConfig
impl Clone for LexerConfig
Source§fn clone(&self) -> LexerConfig
fn clone(&self) -> LexerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexerConfig
impl Debug for LexerConfig
Auto Trait Implementations§
impl Freeze for LexerConfig
impl RefUnwindSafe for LexerConfig
impl Send for LexerConfig
impl Sync for LexerConfig
impl Unpin for LexerConfig
impl UnsafeUnpin for LexerConfig
impl UnwindSafe for LexerConfig
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