pub struct BooleanGenerator { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for BooleanGenerator
impl Debug for BooleanGenerator
Source§impl Default for BooleanGenerator
impl Default for BooleanGenerator
Source§impl ValueGenerator for BooleanGenerator
impl ValueGenerator for BooleanGenerator
type Output = bool
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
fn driver_cache<D: Driver>(&self, driver: &mut D, value: Self::Output)
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
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
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
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
Auto Trait Implementations§
impl Freeze for BooleanGenerator
impl RefUnwindSafe for BooleanGenerator
impl Send for BooleanGenerator
impl Sync for BooleanGenerator
impl Unpin for BooleanGenerator
impl UnsafeUnpin for BooleanGenerator
impl UnwindSafe for BooleanGenerator
Blanket Implementations§
Source§impl<G> Any for Gwhere
G: 'static + ValueGenerator,
impl<G> Any for Gwhere
G: 'static + ValueGenerator,
fn any(&self) -> <G as ValueGenerator>::Output
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more