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

pub struct BeOk<E> {
    // some fields omitted
}

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

Methods

impl<E> BeOk<E>
[src]

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

Sets new ok value.

Trait Implementations

impl<A, E, T> Matcher<Result<A, T>, E> for BeOk<E> where A: PartialEq<E> + Debug, E: 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.