pub struct MapDie<T, U, D, F> { /* private fields */ }Expand description
Adapter for DieOnce::map_once and Die::map.
Implementations§
Trait Implementations§
Source§impl<T, U, D, F> Die<U> for MapDie<T, U, D, F>
impl<T, U, D, F> Die<U> for MapDie<T, U, D, F>
Source§impl<T, U, D, F> DieOnce<U> for MapDie<T, U, D, F>
impl<T, U, D, F> DieOnce<U> for MapDie<T, U, D, F>
Source§fn roll_once(self, fate: Fate<'_>) -> U
fn roll_once(self, fate: Fate<'_>) -> U
Consumes the generator and generates a pseudorandom value. Read more
Source§fn flatten_once<U>(self) -> FlattenDie<U, T, Self>
fn flatten_once<U>(self) -> FlattenDie<U, T, Self>
Source§fn flat_map_once<U, DU, F>(self, f: F) -> FlatMapDie<T, U, Self, DU, F>
fn flat_map_once<U, DU, F>(self, f: F) -> FlatMapDie<T, U, Self, DU, F>
Source§fn boxed_once<'a>(self) -> BoxedDieOnce<'a, T>where
Self: Sized + 'a,
fn boxed_once<'a>(self) -> BoxedDieOnce<'a, T>where
Self: Sized + 'a,
Puts
self behind a Box pointer.Auto Trait Implementations§
impl<T, U, D, F> Freeze for MapDie<T, U, D, F>
impl<T, U, D, F> RefUnwindSafe for MapDie<T, U, D, F>
impl<T, U, D, F> Send for MapDie<T, U, D, F>
impl<T, U, D, F> Sync for MapDie<T, U, D, F>
impl<T, U, D, F> Unpin for MapDie<T, U, D, F>
impl<T, U, D, F> UnwindSafe for MapDie<T, U, D, F>
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