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

Fields of ByScope

Fields of File

Methods

impl ContextReference
[src]

find the pointed to context, panics if ref is not linked

Trait Implementations

impl Debug for ContextReference
[src]

Formats the value using the given formatter.

impl Eq for ContextReference
[src]

impl PartialEq for ContextReference
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.