Enum syntect::parsing::syntax_definition::ContextReference [−][src]
pub enum ContextReference { Named(String), ByScope { scope: Scope, sub_context: Option<String>, }, File { name: String, sub_context: Option<String>, }, Inline(String), Direct(ContextId), }
Variants
Tuple Fields of Named
0: String
Tuple Fields of Inline
0: String
Tuple Fields of Direct
0: ContextId
Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ContextReference
impl Send for ContextReference
impl Sync for ContextReference
impl Unpin for ContextReference
impl UnwindSafe for ContextReference
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.