Struct syntect::parsing::SyntaxReference [−][src]
pub struct SyntaxReference { pub name: String, pub file_extensions: Vec<String>, pub scope: Scope, pub first_line_match: Option<String>, pub hidden: bool, pub variables: HashMap<String, String>, // some fields omitted }
Expand description
A linked version of a SyntaxDefinition
that is only useful as part of the
SyntaxSet
that contains it. See docs for SyntaxSetBuilder::build
for
more info.
Fields
name: String
file_extensions: Vec<String>
scope: Scope
first_line_match: Option<String>
variables: HashMap<String, String>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SyntaxReference
impl Send for SyntaxReference
impl Sync for SyntaxReference
impl Unpin for SyntaxReference
impl UnwindSafe for SyntaxReference
Blanket Implementations
Mutably borrows from an owned value. Read more