pub struct GrammarTrigger {
pub kind: String,
pub value: String,
pub token: i32,
}Expand description
A lazy-grammar trigger: what has to appear before the grammar engages.
Fields§
§kind: String"token", "word", "pattern" or "pattern_full".
value: StringThe literal, word, or regex the trigger matches.
token: i32Token id for "token" triggers; -1 otherwise.
Trait Implementations§
Source§impl Clone for GrammarTrigger
impl Clone for GrammarTrigger
Source§fn clone(&self) -> GrammarTrigger
fn clone(&self) -> GrammarTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GrammarTrigger
impl Debug for GrammarTrigger
impl Eq for GrammarTrigger
Source§impl PartialEq for GrammarTrigger
impl PartialEq for GrammarTrigger
impl StructuralPartialEq for GrammarTrigger
Auto Trait Implementations§
impl Freeze for GrammarTrigger
impl RefUnwindSafe for GrammarTrigger
impl Send for GrammarTrigger
impl Sync for GrammarTrigger
impl Unpin for GrammarTrigger
impl UnsafeUnpin for GrammarTrigger
impl UnwindSafe for GrammarTrigger
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