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(ContextPtr), Direct(LinkerLink), }
Variants
Named(String)
ByScope
Fields of ByScope
scope: Scope | |
sub_context: Option<String> |
File
Fields of File
name: String | |
sub_context: Option<String> |
Inline(ContextPtr)
Direct(LinkerLink)
Methods
impl ContextReference
[src]
fn resolve(&self) -> ContextPtr
find the pointed to context, panics if ref is not linked
Trait Implementations
impl Debug for ContextReference
[src]
impl Eq for ContextReference
[src]
impl PartialEq for ContextReference
[src]
fn eq(&self, __arg_0: &ContextReference) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ContextReference) -> bool
This method tests for !=
.