Struct syntect::parsing::SyntaxReference
source · 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 copy 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 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