Struct bolero_generator::combinator::FilterMapGenerator
source · pub struct FilterMapGenerator<Generator, FilterMap> { /* private fields */ }
Trait Implementations§
source§impl<Generator: Clone, FilterMap: Clone> Clone for FilterMapGenerator<Generator, FilterMap>
impl<Generator: Clone, FilterMap: Clone> Clone for FilterMapGenerator<Generator, FilterMap>
source§fn clone(&self) -> FilterMapGenerator<Generator, FilterMap>
fn clone(&self) -> FilterMapGenerator<Generator, FilterMap>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<G: ValueGenerator, F: Fn(G::Output) -> Option<T>, T> ValueGenerator for FilterMapGenerator<G, F>
impl<G: ValueGenerator, F: Fn(G::Output) -> Option<T>, T> ValueGenerator for FilterMapGenerator<G, F>
type Output = T
source§fn generate<D: Driver>(&self, driver: &mut D) -> Option<Self::Output>
fn generate<D: Driver>(&self, driver: &mut D) -> Option<Self::Output>
Generates a value with the given driver
source§fn mutate<D: Driver>(
&self,
driver: &mut D,
value: &mut Self::Output
) -> Option<()>
fn mutate<D: Driver>( &self, driver: &mut D, value: &mut Self::Output ) -> Option<()>
Mutates an existing value with the given driver
source§fn map<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
fn map<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
Map the value of a generator
source§fn map_gen<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
fn map_gen<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
Map the value of a generator, exists to reduce conflicts with
other
map
functions.source§fn and_then<F: Fn(Self::Output) -> T, T: ValueGenerator>(
self,
and_then: F
) -> AndThenGenerator<Self, F>
fn and_then<F: Fn(Self::Output) -> T, T: ValueGenerator>( self, and_then: F ) -> AndThenGenerator<Self, F>
Map the value of a generator with a new generator
source§fn and_then_gen<F: Fn(Self::Output) -> T, T: ValueGenerator>(
self,
and_then: F
) -> AndThenGenerator<Self, F>
fn and_then_gen<F: Fn(Self::Output) -> T, T: ValueGenerator>( self, and_then: F ) -> AndThenGenerator<Self, F>
Map the value of a generator with a new generator, exists to
reduce conflicts with other
map
functions.source§fn filter<F: Fn(&Self::Output) -> bool>(
self,
filter: F
) -> FilterGenerator<Self, F>
fn filter<F: Fn(&Self::Output) -> bool>( self, filter: F ) -> FilterGenerator<Self, F>
Filter the value of a generator
source§fn filter_gen<F: Fn(&Self::Output) -> bool>(
self,
filter: F
) -> FilterGenerator<Self, F>
fn filter_gen<F: Fn(&Self::Output) -> bool>( self, filter: F ) -> FilterGenerator<Self, F>
Filter the value of a generator, exists to
reduce conflicts with other
filter
functions.source§fn filter_map<F: Fn(Self::Output) -> Option<T>, T>(
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
fn filter_map<F: Fn(Self::Output) -> Option<T>, T>( self, filter_map: F ) -> FilterMapGenerator<Self, F>
Filter the value of a generator and map it to something else
source§fn filter_map_gen<F: Fn(Self::Output) -> Option<T>, T>(
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
fn filter_map_gen<F: Fn(Self::Output) -> Option<T>, T>( self, filter_map: F ) -> FilterMapGenerator<Self, F>
Filter the value of a generator and map it to something else, exists to
reduce conflicts with other
filter_map
functions.