Struct fake::ResultFaker
source · [−]pub struct ResultFaker<T, E> { /* private fields */ }
Implementations
sourceimpl ResultFaker<Faker, Faker>
impl ResultFaker<Faker, Faker>
pub fn default() -> ResultFaker<Faker, Faker>
sourceimpl<T> ResultFaker<T, Faker>
impl<T> ResultFaker<T, Faker>
pub fn ok(ok: T) -> ResultFaker<T, Faker>
sourceimpl<E> ResultFaker<Faker, E>
impl<E> ResultFaker<Faker, E>
pub fn err(err: E) -> ResultFaker<Faker, E>
sourceimpl<T, E> ResultFaker<T, E>
impl<T, E> ResultFaker<T, E>
pub fn with(ok: T, err: E) -> ResultFaker<T, E>
Trait Implementations
sourceimpl<T, E, U, V> Dummy<ResultFaker<U, V>> for Result<T, E> where
T: Dummy<U>,
E: Dummy<V>,
impl<T, E, U, V> Dummy<ResultFaker<U, V>> for Result<T, E> where
T: Dummy<U>,
E: Dummy<V>,
fn dummy_with_rng<R: Rng + ?Sized>(
config: &ResultFaker<U, V>,
rng: &mut R
) -> Self
fn dummy(config: &T) -> Self
Auto Trait Implementations
impl<T, E> RefUnwindSafe for ResultFaker<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for ResultFaker<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for ResultFaker<T, E> where
E: Sync,
T: Sync,
impl<T, E> Unpin for ResultFaker<T, E> where
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for ResultFaker<T, E> where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more