Struct expectest::matchers::BeNone [] [src]

pub struct BeNone;

A matcher for be_none assertions for Option<T> types.

Trait Implementations

impl<A> Matcher<Option<A>, ()> for BeNone where A: Debug
[src]

fn failure_message(&self, join: Join, actual: &Option<A>) -> String

Returns a failure message.

fn matches(&self, actual: &Option<A>) -> bool

Checks if an actual value matches an expected value.