pub struct CompiledContext {
pub meta_scope: Vec<String>,
pub meta_content_scope: Vec<String>,
pub include_prototype: bool,
pub clear_scopes: Option<ClearScopes>,
pub patterns: Vec<CompiledPattern>,
pub meta_prepend: bool,
pub meta_append: bool,
}Expand description
A compiled Sublime context (meta + pattern list).
Fields§
§meta_scope: Vec<String>Meta scope(s) applied while this context is active.
meta_content_scope: Vec<String>Meta content scope(s) applied to content matched within this context.
include_prototype: boolWhether to include the syntax’s prototype patterns in this context.
clear_scopes: Option<ClearScopes>Scope-clearing directive applied when entering this context.
patterns: Vec<CompiledPattern>The patterns that make up this context.
meta_prepend: boolWhether this context prepends patterns when inheriting.
meta_append: boolWhether this context appends patterns when inheriting.
Trait Implementations§
Source§impl Clone for CompiledContext
impl Clone for CompiledContext
Source§fn clone(&self) -> CompiledContext
fn clone(&self) -> CompiledContext
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CompiledContext
impl RefUnwindSafe for CompiledContext
impl Send for CompiledContext
impl Sync for CompiledContext
impl Unpin for CompiledContext
impl UnsafeUnpin for CompiledContext
impl UnwindSafe for CompiledContext
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