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>,
    /* private fields */
}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§
Source§impl Clone for SyntaxReference
 
impl Clone for SyntaxReference
Source§fn clone(&self) -> SyntaxReference
 
fn clone(&self) -> SyntaxReference
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 SyntaxReference
 
impl Debug for SyntaxReference
Source§impl<'de> Deserialize<'de> for SyntaxReference
 
impl<'de> Deserialize<'de> for SyntaxReference
Source§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 !Freeze for SyntaxReference
impl RefUnwindSafe for SyntaxReference
impl Send for SyntaxReference
impl Sync for SyntaxReference
impl Unpin for SyntaxReference
impl UnwindSafe for SyntaxReference
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