[−][src]Struct bolero_generator::time::DurationGenerator
Implementations
impl<Seconds, Nanos> DurationGenerator<Seconds, Nanos> where
Seconds: ValueGenerator<Output = u64>,
Nanos: ValueGenerator<Output = u32>,
[src]
Seconds: ValueGenerator<Output = u64>,
Nanos: ValueGenerator<Output = u32>,
pub fn seconds<NewS: ValueGenerator<Output = u64>>(
self,
seconds: NewS
) -> DurationGenerator<NewS, Nanos>
[src]
self,
seconds: NewS
) -> DurationGenerator<NewS, Nanos>
pub fn map_seconds<NewS: ValueGenerator<Output = u64>, F: Fn(Seconds) -> NewS>(
self,
map: F
) -> DurationGenerator<NewS, Nanos>
[src]
self,
map: F
) -> DurationGenerator<NewS, Nanos>
pub fn nanos<NewE: ValueGenerator<Output = u32>>(
self,
nanos: NewE
) -> DurationGenerator<Seconds, NewE>
[src]
self,
nanos: NewE
) -> DurationGenerator<Seconds, NewE>
pub fn map_nanos<NewE: ValueGenerator<Output = u64>, F: Fn(Nanos) -> NewE>(
self,
map: F
) -> DurationGenerator<Seconds, NewE>
[src]
self,
map: F
) -> DurationGenerator<Seconds, NewE>
Trait Implementations
impl<Seconds, Nanos> ValueGenerator for DurationGenerator<Seconds, Nanos> where
Seconds: ValueGenerator<Output = u64>,
Nanos: ValueGenerator<Output = u32>,
[src]
Seconds: ValueGenerator<Output = u64>,
Nanos: ValueGenerator<Output = u32>,
type Output = Duration
fn generate<D: Driver>(&self, driver: &mut D) -> Option<Self::Output>
[src]
fn mutate<D: Driver>(&self, driver: &mut D, value: &mut Duration) -> Option<()>
[src]
fn map<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
[src]
fn map_gen<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
[src]
fn and_then<F: Fn(Self::Output) -> T, T: ValueGenerator>(
self,
and_then: F
) -> AndThenGenerator<Self, F>
[src]
self,
and_then: F
) -> AndThenGenerator<Self, F>
fn and_then_gen<F: Fn(Self::Output) -> T, T: ValueGenerator>(
self,
and_then: F
) -> AndThenGenerator<Self, F>
[src]
self,
and_then: F
) -> AndThenGenerator<Self, F>
fn filter<F: Fn(&Self::Output) -> bool>(
self,
filter: F
) -> FilterGenerator<Self, F>
[src]
self,
filter: F
) -> FilterGenerator<Self, F>
fn filter_gen<F: Fn(&Self::Output) -> bool>(
self,
filter: F
) -> FilterGenerator<Self, F>
[src]
self,
filter: F
) -> FilterGenerator<Self, F>
fn filter_map<F: Fn(Self::Output) -> Option<T>, T>(
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
[src]
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
fn filter_map_gen<F: Fn(Self::Output) -> Option<T>, T>(
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
[src]
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
Auto Trait Implementations
impl<Seconds, Nanos> RefUnwindSafe for DurationGenerator<Seconds, Nanos> where
Nanos: RefUnwindSafe,
Seconds: RefUnwindSafe,
Nanos: RefUnwindSafe,
Seconds: RefUnwindSafe,
impl<Seconds, Nanos> Send for DurationGenerator<Seconds, Nanos> where
Nanos: Send,
Seconds: Send,
Nanos: Send,
Seconds: Send,
impl<Seconds, Nanos> Sync for DurationGenerator<Seconds, Nanos> where
Nanos: Sync,
Seconds: Sync,
Nanos: Sync,
Seconds: Sync,
impl<Seconds, Nanos> Unpin for DurationGenerator<Seconds, Nanos> where
Nanos: Unpin,
Seconds: Unpin,
Nanos: Unpin,
Seconds: Unpin,
impl<Seconds, Nanos> UnwindSafe for DurationGenerator<Seconds, Nanos> where
Nanos: UnwindSafe,
Seconds: UnwindSafe,
Nanos: UnwindSafe,
Seconds: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,