pub enum GrammarTriggerType {
Token = 0,
Word = 1,
Pattern = 2,
PatternFull = 3,
}Expand description
Grammar trigger kinds used for lazy grammar sampling.
Variants§
Token = 0
Trigger on a specific token.
Word = 1
Trigger on a literal word.
Pattern = 2
Trigger on a regex pattern.
PatternFull = 3
Trigger on a fully anchored regex pattern.
Trait Implementations§
Source§impl Clone for GrammarTriggerType
impl Clone for GrammarTriggerType
Source§fn clone(&self) -> GrammarTriggerType
fn clone(&self) -> GrammarTriggerType
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 GrammarTriggerType
impl Debug for GrammarTriggerType
Source§impl PartialEq for GrammarTriggerType
impl PartialEq for GrammarTriggerType
impl Copy for GrammarTriggerType
impl Eq for GrammarTriggerType
impl StructuralPartialEq for GrammarTriggerType
Auto Trait Implementations§
impl Freeze for GrammarTriggerType
impl RefUnwindSafe for GrammarTriggerType
impl Send for GrammarTriggerType
impl Sync for GrammarTriggerType
impl Unpin for GrammarTriggerType
impl UnwindSafe for GrammarTriggerType
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