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

pub struct BeOk;

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

Methods

impl BeOk[src]

pub fn value<E>(self, v: E) -> BeOkValue<E>[src]

Returns a new BeOkValue matcher.

Trait Implementations

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

Auto Trait Implementations

impl Send for BeOk

impl Sync for BeOk

impl Unpin for BeOk

impl UnwindSafe for BeOk

impl RefUnwindSafe for BeOk

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]