Matcher

Trait Matcher 

Source
pub trait Matcher<T> {
    // Required method
    fn matches(&self, value: T) -> bool;
}
Expand description

A matcher for results expected from a milter.

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl Matcher<i32> for i32

Source§

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

Source§

impl<'a, 'b> Matcher<&'b CStr> for &'a str

Source§

fn matches(&self, value: &'b CStr) -> bool

Source§

impl<'a, 'b> Matcher<&'b CStr> for &'a Regex

Available on crate feature regex only.
Source§

fn matches(&self, value: &'b CStr) -> bool

Source§

impl<'a, 'b> Matcher<&'b CStr> for &'a Regex

Available on crate feature regex only.
Source§

fn matches(&self, value: &'b CStr) -> bool

Source§

impl<'a, 'b> Matcher<&'b [u8]> for &'a str

Source§

fn matches(&self, value: &'b [u8]) -> bool

Source§

impl<'a, 'b> Matcher<&'b [u8]> for &'a Regex

Available on crate feature regex only.
Source§

fn matches(&self, value: &'b [u8]) -> bool

Source§

impl<'a, 'b> Matcher<&'b [u8]> for &'a [u8]

Source§

fn matches(&self, value: &'b [u8]) -> bool

Source§

impl<'a, 'b> Matcher<Option<&'b CStr>> for &'a str

Source§

fn matches(&self, value: Option<&'b CStr>) -> bool

Source§

impl<'a, 'b> Matcher<Option<&'b CStr>> for &'a Regex

Available on crate feature regex only.
Source§

fn matches(&self, value: Option<&'b CStr>) -> bool

Source§

impl<'a, 'b> Matcher<Option<&'b CStr>> for &'a Regex

Available on crate feature regex only.
Source§

fn matches(&self, value: Option<&'b CStr>) -> bool

Source§

impl<'a, 'b> Matcher<Option<&'b CStr>> for Option<&'a str>

Source§

fn matches(&self, value: Option<&'b CStr>) -> bool

Source§

impl<'a, 'b, const N: usize> Matcher<&'b [u8]> for &'a [u8; N]

Source§

fn matches(&self, value: &'b [u8]) -> bool

Implementors§

Source§

impl<F> Matcher<i32> for F
where F: Fn(i32) -> bool,

Source§

impl<T> Matcher<T> for AnyMatcher