Skip to main content

CriterionMatcher

Trait CriterionMatcher 

Source
pub trait CriterionMatcher<T: LinkReference> {
    // Required method
    fn is_matched<L: Doublets<T> + ?Sized>(&self, links: &L, link: T) -> bool;
}
Expand description

A predicate that identifies links, for example terminal sequence elements.

Closures implementing Fn(T) -> bool can also serve as matchers.

Required Methods§

Source

fn is_matched<L: Doublets<T> + ?Sized>(&self, links: &L, link: T) -> bool

Returns whether link satisfies this criterion in links.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§