pub struct RawGrammar {
pub display_name: Option<String>,
pub name: String,
pub scope_name: String,
pub file_types: Option<Vec<String>>,
pub first_line_match: Option<Value>,
pub patterns: Vec<RawPattern>,
pub repository: Option<BTreeMap<String, RawPattern>>,
}Expand description
A parsed, uncompiled TextMate grammar.
Fields§
§display_name: Option<String>Human-readable display name.
name: StringHuman-readable grammar name.
scope_name: StringRoot scope name.
file_types: Option<Vec<String>>File extensions and special file names.
first_line_match: Option<Value>First-line match expressions, as either a string or string array.
patterns: Vec<RawPattern>Root patterns.
repository: Option<BTreeMap<String, RawPattern>>Named pattern repository.
Implementations§
Trait Implementations§
Source§impl Clone for RawGrammar
impl Clone for RawGrammar
Source§fn clone(&self) -> RawGrammar
fn clone(&self) -> RawGrammar
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 RawGrammar
impl Debug for RawGrammar
Source§impl Deserialize for RawGrammar
impl Deserialize for RawGrammar
Auto Trait Implementations§
impl Freeze for RawGrammar
impl RefUnwindSafe for RawGrammar
impl Send for RawGrammar
impl Sync for RawGrammar
impl Unpin for RawGrammar
impl UnsafeUnpin for RawGrammar
impl UnwindSafe for RawGrammar
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