pub struct KeywordEntry { /* private fields */ }Expand description
One grammar keyword entry.
Yielded by AnyGrammar::keywords for completions, lexers, and tooling.
Implementations§
Source§impl KeywordEntry
impl KeywordEntry
Sourcepub fn token_type(&self) -> AnyTokenType
pub fn token_type(&self) -> AnyTokenType
The token type for this keyword.
Trait Implementations§
Source§impl Clone for KeywordEntry
impl Clone for KeywordEntry
Source§fn clone(&self) -> KeywordEntry
fn clone(&self) -> KeywordEntry
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 KeywordEntry
impl Debug for KeywordEntry
Source§impl PartialEq for KeywordEntry
impl PartialEq for KeywordEntry
impl Copy for KeywordEntry
impl Eq for KeywordEntry
impl StructuralPartialEq for KeywordEntry
Auto Trait Implementations§
impl Freeze for KeywordEntry
impl RefUnwindSafe for KeywordEntry
impl Send for KeywordEntry
impl Sync for KeywordEntry
impl Unpin for KeywordEntry
impl UnsafeUnpin for KeywordEntry
impl UnwindSafe for KeywordEntry
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