expectest::matchers
pub struct BeNone;
A matcher for be_none assertions for Option<T> types.
be_none
Option<T>
impl<A> Matcher<Option<A>, ()> for BeNone where A: Debug
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.