Trait Match

Source
pub trait Match<K>: Send + Sync {
    // Required methods
    fn match_key(&self, key: &Key<K>) -> bool;
    fn match_children(&self, key: &Key<K>) -> bool;
}
Expand description

Trait that matches keys

Required Methods§

Source

fn match_key(&self, key: &Key<K>) -> bool

Returns true if self matches the given Key

Source

fn match_children(&self, key: &Key<K>) -> bool

Returns true if self can match a children of the given Key

Implementations on Foreign Types§

Source§

impl<K> Match<K> for ()

Source§

fn match_key(&self, _: &Key<K>) -> bool

Source§

fn match_children(&self, _: &Key<K>) -> bool

Source§

impl<K> Match<K> for Range<Key<K>>
where K: Ord + Send + Sync,

Source§

fn match_key(&self, key: &Key<K>) -> bool

Source§

fn match_children(&self, key: &Key<K>) -> bool

Source§

impl<K> Match<K> for RangeFrom<Key<K>>
where K: Ord + Send + Sync,

Source§

fn match_key(&self, key: &Key<K>) -> bool

Source§

fn match_children(&self, key: &Key<K>) -> bool

Source§

impl<K> Match<K> for RangeFull

Source§

fn match_key(&self, _: &Key<K>) -> bool

Source§

fn match_children(&self, _: &Key<K>) -> bool

Source§

impl<K> Match<K> for RangeInclusive<Key<K>>
where K: Ord + Send + Sync,

Source§

fn match_key(&self, key: &Key<K>) -> bool

Source§

fn match_children(&self, key: &Key<K>) -> bool

Source§

impl<K> Match<K> for RangeTo<Key<K>>
where K: Ord + Send + Sync,

Source§

fn match_key(&self, key: &Key<K>) -> bool

Source§

fn match_children(&self, key: &Key<K>) -> bool

Source§

impl<K> Match<K> for RangeToInclusive<Key<K>>
where K: Ord + Send + Sync,

Source§

fn match_key(&self, key: &Key<K>) -> bool

Source§

fn match_children(&self, key: &Key<K>) -> bool

Implementors§

Source§

impl<K> Match<K> for Key<K>
where K: Ord + Send + Sync,

Source§

impl<K, C> Match<K> for KeyMaskSet<K, C>
where K: Hash + Ord + Send + Sync, C: MatchAtom<K>,

Source§

impl<K, C> Match<K> for Mask<K, C>
where K: PartialEq + Send + Sync, C: MatchAtom<K>,