pub struct DurationGenerator { /* private fields */ }Expand description
Generator for Duration values. Created by durations().
Internally generates nanoseconds as a u64, so the maximum representable
duration is approximately 584 years (u64::MAX nanoseconds).
Implementations§
Trait Implementations§
Source§impl Generator<Duration> for DurationGenerator
impl Generator<Duration> for DurationGenerator
Source§fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
Transform generated values using a function. Read more
Source§fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
Generate a value, then use it to choose or configure another generator. Read more
Auto Trait Implementations§
impl Freeze for DurationGenerator
impl RefUnwindSafe for DurationGenerator
impl Send for DurationGenerator
impl Sync for DurationGenerator
impl Unpin for DurationGenerator
impl UnsafeUnpin for DurationGenerator
impl UnwindSafe for DurationGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more