pub struct Mapped<T, U, F, G> { /* private fields */ }Expand description
Result of Generator::map.
Trait Implementations§
Source§impl<T, U, F, G> Generator<U> for Mapped<T, U, F, G>
impl<T, U, F, G> Generator<U> for Mapped<T, U, F, G>
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, U, F, G> Freeze for Mapped<T, U, F, G>where
G: Freeze,
impl<T, U, F, G> RefUnwindSafe for Mapped<T, U, F, G>where
G: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, U, F, G> Send for Mapped<T, U, F, G>
impl<T, U, F, G> Sync for Mapped<T, U, F, G>
impl<T, U, F, G> Unpin for Mapped<T, U, F, G>where
G: Unpin,
impl<T, U, F, G> UnsafeUnpin for Mapped<T, U, F, G>where
G: UnsafeUnpin,
impl<T, U, F, G> UnwindSafe for Mapped<T, U, F, G>where
G: UnwindSafe,
F: RefUnwindSafe,
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