Struct dicetest::adapters::MapDie [−][src]
pub struct MapDie<T, U, D, F> { /* fields omitted */ }Expand description
Adapter for DieOnce::map_once and Die::map.
Implementations
Trait Implementations
Consumes the generator and generates a pseudorandom value. Read more
fn flat_map_once<U, DU, F>(self, f: F) -> FlatMapDie<T, U, Self, DU, F> where
Self: Sized,
DU: DieOnce<U>,
F: FnOnce(T) -> DU,
fn flat_map_once<U, DU, F>(self, f: F) -> FlatMapDie<T, U, Self, DU, F> where
Self: Sized,
DU: DieOnce<U>,
F: FnOnce(T) -> DU,
Puts self behind a Box pointer.