pub struct CompiledMatchPattern {
pub origin_scope: String,
pub regex_source: String,
pub regex: Arc<Regex>,
pub scope: Vec<String>,
pub captures: HashMap<u32, Vec<String>>,
pub action: MatchAction,
}Expand description
A compiled match: regex pattern.
Fields§
§origin_scope: StringScope of the syntax that produced this pattern.
regex_source: StringOriginal regex source string (after variable substitution).
regex: Arc<Regex>Compiled Oniguruma regex.
scope: Vec<String>Scopes applied to the matched region.
captures: HashMap<u32, Vec<String>>Per-capture scopes keyed by capture group index.
action: MatchActionAction taken when this pattern matches.
Trait Implementations§
Source§impl Clone for CompiledMatchPattern
impl Clone for CompiledMatchPattern
Source§fn clone(&self) -> CompiledMatchPattern
fn clone(&self) -> CompiledMatchPattern
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 CompiledMatchPattern
impl RefUnwindSafe for CompiledMatchPattern
impl Send for CompiledMatchPattern
impl Sync for CompiledMatchPattern
impl Unpin for CompiledMatchPattern
impl UnsafeUnpin for CompiledMatchPattern
impl UnwindSafe for CompiledMatchPattern
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