#[non_exhaustive]pub enum BindMode {
Naive,
TrieJointByte,
TrieJointByteLazy,
TrieJointBytePacked,
TrieJointClass,
}Expand description
Selects the strategy used to build allowed-token masks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Naive
Rewalks every token from each automaton state.
TrieJointByte
Eagerly builds state rows with a shared byte trie.
TrieJointByteLazy
Builds byte-trie rows lazily on first use.
TrieJointBytePacked
Precomputes packed mask rows for all states.
TrieJointClass
Uses a byte-class trie for per-compile binding.
Trait Implementations§
impl Copy for BindMode
impl Eq for BindMode
impl StructuralPartialEq for BindMode
Auto Trait Implementations§
impl Freeze for BindMode
impl RefUnwindSafe for BindMode
impl Send for BindMode
impl Sync for BindMode
impl Unpin for BindMode
impl UnsafeUnpin for BindMode
impl UnwindSafe for BindMode
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