Struct ScanSpec
pub struct ScanSpec {
pub token_id: TokenId,
pub regex: String,
}Expand description
One ranked, compiled-ready terminal: its id + final to_regexp() output.
Fields§
§token_id: TokenId§regex: StringFinal to_regexp() string (per-terminal flags baked in; grammar-wide
g_regex_flags not baked in — they arrive via Scanner::new).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanSpec
impl RefUnwindSafe for ScanSpec
impl Send for ScanSpec
impl Sync for ScanSpec
impl Unpin for ScanSpec
impl UnsafeUnpin for ScanSpec
impl UnwindSafe for ScanSpec
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