pub enum GrammarKind {
TextMate,
Json,
}Expand description
Tokenization strategy used by a grammar.
Variants§
TextMate
TextMate grammar compiled to Oniguruma regex sets.
Json
Dedicated line-oriented JSON scanner.
Trait Implementations§
Source§impl Clone for GrammarKind
impl Clone for GrammarKind
Source§fn clone(&self) -> GrammarKind
fn clone(&self) -> GrammarKind
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 GrammarKind
impl Debug for GrammarKind
Source§impl PartialEq for GrammarKind
impl PartialEq for GrammarKind
Source§fn eq(&self, other: &GrammarKind) -> bool
fn eq(&self, other: &GrammarKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GrammarKind
impl Eq for GrammarKind
impl StructuralPartialEq for GrammarKind
Auto Trait Implementations§
impl Freeze for GrammarKind
impl RefUnwindSafe for GrammarKind
impl Send for GrammarKind
impl Sync for GrammarKind
impl Unpin for GrammarKind
impl UnsafeUnpin for GrammarKind
impl UnwindSafe for GrammarKind
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