Struct expectest::matchers::BeOk [] [src]

pub struct BeOk;

A matcher for be_ok assertions for Result<T, E> type.

Methods

impl BeOk
[src]

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

Returns a new BeOkValue matcher.

Trait Implementations

impl<A, T> Matcher<Result<A, T>, ()> for BeOk where A: Debug, T: Debug
[src]

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

Returns a failure message.

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

Checks if an actual value matches an expected value.