[][src]Struct mimicaw::Outcome

pub struct Outcome { /* fields omitted */ }

The outcome of performing a test.

Methods

impl Outcome[src]

pub fn passed() -> Self[src]

Create an Outcome representing that the test passed.

pub fn failed() -> Self[src]

Create an Outcome representing that the test or benchmark failed.

pub fn measured(average: u64, variance: u64) -> Self[src]

Create an Outcome representing that the benchmark test was successfully run.

pub fn error_message(self, err_msg: impl Into<Cow<'static, str>>) -> Self[src]

Specify the error message.

Trait Implementations

impl Debug for Outcome[src]

Auto Trait Implementations

impl RefUnwindSafe for Outcome

impl Send for Outcome

impl Sync for Outcome

impl Unpin for Outcome

impl UnwindSafe for Outcome

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.