Trait mry::Match

source ·
pub trait Match<I> {
    // Required method
    fn matches(&self, input: &I) -> bool;
}

Required Methods§

source

fn matches(&self, input: &I) -> bool

Implementations on Foreign Types§

source§

impl Match<()> for ()

source§

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

source§

impl<A: Send + 'static> Match<(A,)> for (ArgMatcher<A>,)

source§

fn matches(&self, (a): &(A,)) -> bool

source§

impl<A: Send + 'static, B: Send + 'static> Match<(A, B)> for (ArgMatcher<A>, ArgMatcher<B>)

source§

fn matches(&self, (a, b): &(A, B)) -> bool

source§

impl<A: Send + 'static, B: Send + 'static, C: Send + 'static> Match<(A, B, C)> for (ArgMatcher<A>, ArgMatcher<B>, ArgMatcher<C>)

source§

fn matches(&self, (a, b, c): &(A, B, C)) -> bool

source§

impl<A: Send + 'static, B: Send + 'static, C: Send + 'static, D: Send + 'static> Match<(A, B, C, D)> for (ArgMatcher<A>, ArgMatcher<B>, ArgMatcher<C>, ArgMatcher<D>)

source§

fn matches(&self, (a, b, c, d): &(A, B, C, D)) -> bool

source§

impl<A: Send + 'static, B: Send + 'static, C: Send + 'static, D: Send + 'static, E: Send + 'static> Match<(A, B, C, D, E)> for (ArgMatcher<A>, ArgMatcher<B>, ArgMatcher<C>, ArgMatcher<D>, ArgMatcher<E>)

source§

fn matches(&self, (a, b, c, d, e): &(A, B, C, D, E)) -> bool

Implementors§