Struct relex::Rule [−][src]
Expand description
Represents a lexer rule: i.e., a regex that can produce tokens, and whether they are skippable or not. A Rule also stores the token kind.
Fields
kind: K
re: Regex
skip: bool
capture: bool
Implementations
Trait Implementations
Auto Trait Implementations
impl<K> RefUnwindSafe for Rule<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<K> Send for Rule<K> where
K: Send,
K: Send,
impl<K> Sync for Rule<K> where
K: Sync,
K: Sync,
impl<K> Unpin for Rule<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for Rule<K> where
K: UnwindSafe,
K: UnwindSafe,