pub struct FilterMapGenerator<Generator, FilterMap> { /* private fields */ }

Trait Implementations§

source§

impl<Generator: Clone, FilterMap: Clone> Clone for FilterMapGenerator<Generator, FilterMap>

source§

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)

Performs copy-assignment from source. Read more
source§

impl<Generator: Debug, FilterMap: Debug> Debug for FilterMapGenerator<Generator, FilterMap>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

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>

Generates a value with the given driver
source§

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>

Map the value of a generator
source§

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>

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>

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>

Filter the value of a generator
source§

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>

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>

Filter the value of a generator and map it to something else, exists to reduce conflicts with other filter_map functions.

Auto Trait Implementations§

§

impl<Generator, FilterMap> RefUnwindSafe for FilterMapGenerator<Generator, FilterMap>where FilterMap: RefUnwindSafe, Generator: RefUnwindSafe,

§

impl<Generator, FilterMap> Send for FilterMapGenerator<Generator, FilterMap>where FilterMap: Send, Generator: Send,

§

impl<Generator, FilterMap> Sync for FilterMapGenerator<Generator, FilterMap>where FilterMap: Sync, Generator: Sync,

§

impl<Generator, FilterMap> Unpin for FilterMapGenerator<Generator, FilterMap>where FilterMap: Unpin, Generator: Unpin,

§

impl<Generator, FilterMap> UnwindSafe for FilterMapGenerator<Generator, FilterMap>where FilterMap: UnwindSafe, Generator: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.