pub struct MetaPattern {
pub meta_scope: Option<String>,
pub meta_content_scope: Option<String>,
pub meta_include_prototype: Option<bool>,
pub clear_scopes: Option<ClearScopes>,
pub meta_prepend: Option<bool>,
pub meta_append: Option<bool>,
pub comment: Option<String>,
}Expand description
A “meta pattern” that configures context behavior (scopes, prototype include, etc.).
Fields§
§meta_scope: Option<String>Scope applied while the context is on the stack.
meta_content_scope: Option<String>Scope applied to content matched while this context is on the stack.
meta_include_prototype: Option<bool>Whether this context includes the syntax prototype.
clear_scopes: Option<ClearScopes>Optional scope-clearing directive.
meta_prepend: Option<bool>In inheritance merges, whether to prepend child patterns.
meta_append: Option<bool>In inheritance merges, whether to append child patterns.
comment: Option<String>Optional comment (ignored by the engine).
Trait Implementations§
Source§impl Clone for MetaPattern
impl Clone for MetaPattern
Source§fn clone(&self) -> MetaPattern
fn clone(&self) -> MetaPattern
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 moreSource§impl Debug for MetaPattern
impl Debug for MetaPattern
Source§impl Default for MetaPattern
impl Default for MetaPattern
Source§fn default() -> MetaPattern
fn default() -> MetaPattern
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetaPattern
impl<'de> Deserialize<'de> for MetaPattern
Source§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
Auto Trait Implementations§
impl Freeze for MetaPattern
impl RefUnwindSafe for MetaPattern
impl Send for MetaPattern
impl Sync for MetaPattern
impl Unpin for MetaPattern
impl UnsafeUnpin for MetaPattern
impl UnwindSafe for MetaPattern
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