[−][src]Struct fake::ResultFaker
Methods
impl ResultFaker<Faker, Faker>
[src]
pub fn default() -> 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]
T: Dummy<U>,
E: Dummy<V>,
fn dummy_with_rng<R: Rng + ?Sized>(
config: &ResultFaker<U, V>,
rng: &mut R
) -> Self
[src]
config: &ResultFaker<U, V>,
rng: &mut R
) -> Self
fn dummy(config: &T) -> Self
[src]
Auto Trait Implementations
impl<T, E> Unpin for ResultFaker<T, E> where
E: Unpin,
T: Unpin,
E: Unpin,
T: Unpin,
impl<T, E> Sync for ResultFaker<T, E> where
E: Sync,
T: Sync,
E: Sync,
T: Sync,
impl<T, E> Send for ResultFaker<T, E> where
E: Send,
T: Send,
E: Send,
T: Send,
impl<T, E> RefUnwindSafe for ResultFaker<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> UnwindSafe for ResultFaker<T, E> where
E: UnwindSafe,
T: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Fake for T
[src]
fn fake<U>(&self) -> U where
Self: FakeBase<U>,
[src]
Self: FakeBase<U>,
fn fake_with_rng<U, R: Rng + ?Sized>(&self, rng: &mut R) -> U where
Self: FakeBase<U>,
[src]
Self: FakeBase<U>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,