Struct ultron_syntaxes_themes::SyntaxReference
source · pub struct SyntaxReference {
pub name: String,
pub file_extensions: Vec<String, Global>,
pub scope: Scope,
pub first_line_match: Option<String>,
pub hidden: bool,
pub variables: HashMap<String, String, RandomState>,
/* 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, Global>
§scope: Scope
§first_line_match: Option<String>
§variables: HashMap<String, String, RandomState>
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<SyntaxReference, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SyntaxReference, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SyntaxReference
impl Serialize for SyntaxReference
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. 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