pub struct MatchRuleSet {
pub condition: MatchCondition,
pub list_patterns: Vec<Pattern>,
pub keyed_patterns: Vec<KeyedPattern>,
}Expand description
匹配规则集合,按作用域聚合的规则组
Fields§
§condition: MatchCondition§list_patterns: Vec<Pattern>§keyed_patterns: Vec<KeyedPattern>Implementations§
Source§impl MatchRuleSet
impl MatchRuleSet
pub fn new() -> Self
pub fn add_list_pattern(&mut self, pattern: Pattern)
pub fn add_keyed_pattern(&mut self, keyed_pattern: KeyedPattern)
Sourcepub fn with_condition(condition: MatchCondition) -> Self
pub fn with_condition(condition: MatchCondition) -> Self
新建指定条件的 MatchRuleSet
pub fn from_cached(scope: &MatchScope, cached: CachedScopeRule) -> Self
pub fn to_cached(&self, scope: &MatchScope) -> CachedScopeRule
Trait Implementations§
Source§impl Clone for MatchRuleSet
impl Clone for MatchRuleSet
Source§fn clone(&self) -> MatchRuleSet
fn clone(&self) -> MatchRuleSet
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 MatchRuleSet
impl Debug for MatchRuleSet
Source§impl Default for MatchRuleSet
impl Default for MatchRuleSet
Source§fn default() -> MatchRuleSet
fn default() -> MatchRuleSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for MatchRuleSet
impl PartialEq for MatchRuleSet
impl StructuralPartialEq for MatchRuleSet
Auto Trait Implementations§
impl Freeze for MatchRuleSet
impl RefUnwindSafe for MatchRuleSet
impl Send for MatchRuleSet
impl Sync for MatchRuleSet
impl Unpin for MatchRuleSet
impl UnsafeUnpin for MatchRuleSet
impl UnwindSafe for MatchRuleSet
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