Struct expectest::matchers::BeSome [] [src]

pub struct BeSome;

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

Methods

impl BeSome
[src]

fn value<E>(self, v: E) -> BeSomeValue<E>

Returns a new BeSomeValue matcher.

Trait Implementations

impl<A> Matcher<Option<A>, ()> for BeSome 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.