Trait puffin::algebra::Matcher

source ·
pub trait Matcher:
    Debug
    + Clone
    + Hash
    + Serialize
    + DeserializeOwned
    + PartialEq {
    // Required methods
    fn matches(&self, matcher: &Self) -> bool;
    fn specificity(&self) -> u32;
}
Expand description

Determines whether two instances match. We can also ask it how specific it is.

Required Methods§

source

fn matches(&self, matcher: &Self) -> bool

source

fn specificity(&self) -> u32

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Matcher for Option<T>
where T: Matcher,

source§

fn matches(&self, matcher: &Self) -> bool

source§

fn specificity(&self) -> u32

Implementors§