pub struct RawPattern {
pub name: Option<String>,
pub match_rule: Option<String>,
pub begin: Option<String>,
pub end: Option<String>,
pub patterns: Option<Vec<RawPattern>>,
pub include: Option<String>,
pub captures: Option<BTreeMap<String, RawCapture>>,
pub begin_captures: Option<BTreeMap<String, RawCapture>>,
pub end_captures: Option<BTreeMap<String, RawCapture>>,
}Expand description
A parsed, uncompiled TextMate pattern.
Fields§
§name: Option<String>Scope assigned to the match.
match_rule: Option<String>Single-line match expression.
begin: Option<String>Begin expression for a stateful rule.
end: Option<String>End expression for a stateful rule.
patterns: Option<Vec<RawPattern>>Nested patterns.
include: Option<String>Include target such as $self, $base, or #name.
captures: Option<BTreeMap<String, RawCapture>>Match captures.
begin_captures: Option<BTreeMap<String, RawCapture>>Begin captures.
end_captures: Option<BTreeMap<String, RawCapture>>End captures.
Trait Implementations§
Source§impl Clone for RawPattern
impl Clone for RawPattern
Source§fn clone(&self) -> RawPattern
fn clone(&self) -> RawPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawPattern
impl Debug for RawPattern
Source§impl Default for RawPattern
impl Default for RawPattern
Source§fn default() -> RawPattern
fn default() -> RawPattern
Returns the “default value” for a type. Read more
Source§impl Deserialize for RawPattern
impl Deserialize for RawPattern
Auto Trait Implementations§
impl Freeze for RawPattern
impl RefUnwindSafe for RawPattern
impl Send for RawPattern
impl Sync for RawPattern
impl Unpin for RawPattern
impl UnsafeUnpin for RawPattern
impl UnwindSafe for RawPattern
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