pub struct JustGenerator<T> { /* private fields */ }Expand description
Generator that always produces the same value. Created by just().
Trait Implementations§
Source§impl<T: Clone + Send + Sync> Generator<T> for JustGenerator<T>
impl<T: Clone + Send + Sync> Generator<T> for JustGenerator<T>
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<T> Freeze for JustGenerator<T>where
T: Freeze,
impl<T> RefUnwindSafe for JustGenerator<T>where
T: RefUnwindSafe,
impl<T> Send for JustGenerator<T>where
T: Send,
impl<T> Sync for JustGenerator<T>where
T: Sync,
impl<T> Unpin for JustGenerator<T>where
T: Unpin,
impl<T> UnsafeUnpin for JustGenerator<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for JustGenerator<T>where
T: UnwindSafe,
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