pub struct LexOptions {
pub empty: bool,
pub empty_result: Value,
pub relex: bool,
pub matchers: IndexMap<String, LexMatcher>,
pub window: bool,
}Fields§
§empty: bool§empty_result: Value§relex: bool§matchers: IndexMap<String, LexMatcher>§window: boolThe grammar’s matchers and actions read the source only through
the lexer’s window (crate::Lexer::window, crate::Lexer::fill),
so a parse from a reader may hold a window of it rather than all of
it (crate::Tabnas::parse_reader). Without it, a reader is read
whole before the parse begins. Off by default (admin ADR-30).
Trait Implementations§
Source§impl Clone for LexOptions
impl Clone for LexOptions
Source§impl Debug for LexOptions
impl Debug for LexOptions
Auto Trait Implementations§
impl !RefUnwindSafe for LexOptions
impl !UnwindSafe for LexOptions
impl Freeze for LexOptions
impl Send for LexOptions
impl Sync for LexOptions
impl Unpin for LexOptions
impl UnsafeUnpin for LexOptions
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