[][src]Struct bolero_generator::time::DurationGenerator

pub struct DurationGenerator<Seconds, Nanos> { /* fields omitted */ }

Implementations

impl<Seconds, Nanos> DurationGenerator<Seconds, Nanos> where
    Seconds: ValueGenerator<Output = u64>,
    Nanos: ValueGenerator<Output = u32>, 
[src]

pub fn seconds<NewS: ValueGenerator<Output = u64>>(
    self,
    seconds: NewS
) -> DurationGenerator<NewS, Nanos>
[src]

pub fn map_seconds<NewS: ValueGenerator<Output = u64>, F: Fn(Seconds) -> NewS>(
    self,
    map: F
) -> DurationGenerator<NewS, Nanos>
[src]

pub fn nanos<NewE: ValueGenerator<Output = u32>>(
    self,
    nanos: NewE
) -> DurationGenerator<Seconds, NewE>
[src]

pub fn map_nanos<NewE: ValueGenerator<Output = u64>, F: Fn(Nanos) -> NewE>(
    self,
    map: F
) -> DurationGenerator<Seconds, NewE>
[src]

Trait Implementations

impl<Seconds, Nanos> ValueGenerator for DurationGenerator<Seconds, Nanos> where
    Seconds: ValueGenerator<Output = u64>,
    Nanos: ValueGenerator<Output = u32>, 
[src]

type Output = Duration

Auto Trait Implementations

impl<Seconds, Nanos> RefUnwindSafe for DurationGenerator<Seconds, Nanos> where
    Nanos: RefUnwindSafe,
    Seconds: RefUnwindSafe

impl<Seconds, Nanos> Send for DurationGenerator<Seconds, Nanos> where
    Nanos: Send,
    Seconds: Send

impl<Seconds, Nanos> Sync for DurationGenerator<Seconds, Nanos> where
    Nanos: Sync,
    Seconds: Sync

impl<Seconds, Nanos> Unpin for DurationGenerator<Seconds, Nanos> where
    Nanos: Unpin,
    Seconds: Unpin

impl<Seconds, Nanos> UnwindSafe for DurationGenerator<Seconds, Nanos> where
    Nanos: UnwindSafe,
    Seconds: UnwindSafe

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.