[][src]Struct fake::ResultFaker

pub struct ResultFaker<T, E> { /* fields omitted */ }

Methods

impl ResultFaker<Faker, Faker>[src]

impl<T> ResultFaker<T, Faker>[src]

pub fn ok(ok: T) -> ResultFaker<T, Faker>[src]

impl<E> ResultFaker<Faker, E>[src]

pub fn err(err: E) -> ResultFaker<Faker, E>[src]

impl<T, E> ResultFaker<T, E>[src]

pub fn with(ok: T, err: E) -> ResultFaker<T, E>[src]

Trait Implementations

impl<T, E, U, V> Dummy<ResultFaker<U, V>> for Result<T, E> where
    T: Dummy<U>,
    E: Dummy<V>, 
[src]

fn dummy(config: &T) -> Self[src]

Auto Trait Implementations

impl<T, E> Unpin for ResultFaker<T, E> where
    E: Unpin,
    T: Unpin

impl<T, E> Sync for ResultFaker<T, E> where
    E: Sync,
    T: Sync

impl<T, E> Send for ResultFaker<T, E> where
    E: Send,
    T: Send

impl<T, E> RefUnwindSafe for ResultFaker<T, E> where
    E: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, E> UnwindSafe for ResultFaker<T, E> where
    E: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Fake for T[src]

fn fake<U>(&self) -> U where
    Self: FakeBase<U>, 
[src]

fn fake_with_rng<U, R: Rng + ?Sized>(&self, rng: &mut R) -> U where
    Self: FakeBase<U>, 
[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.

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,