pub struct RangeInclusiveGenerator<Start, End> { /* private fields */ }

Implementations§

source§

impl<Start, End, T> RangeInclusiveGenerator<Start, End>
where Start: ValueGenerator<Output = T>, End: ValueGenerator<Output = T>,

source

pub fn start<NewS: ValueGenerator<Output = T>>( self, start: NewS ) -> RangeInclusiveGenerator<NewS, End>

source

pub fn map_start<NewS: ValueGenerator<Output = T>, F: Fn(Start) -> NewS>( self, map: F ) -> RangeInclusiveGenerator<NewS, End>

source

pub fn end<NewE: ValueGenerator<Output = T>>( self, end: NewE ) -> RangeInclusiveGenerator<Start, NewE>

source

pub fn map_end<NewE: ValueGenerator<Output = T>, F: Fn(End) -> NewE>( self, map: F ) -> RangeInclusiveGenerator<Start, NewE>

Trait Implementations§

source§

impl<Start, End, T> ValueGenerator for RangeInclusiveGenerator<Start, End>
where Start: ValueGenerator<Output = T>, End: ValueGenerator<Output = T>,

§

type Output = RangeInclusive<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_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>

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>

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>

Filter the value of a generator and map it to something else

Auto Trait Implementations§

§

impl<Start, End> RefUnwindSafe for RangeInclusiveGenerator<Start, End>
where End: RefUnwindSafe, Start: RefUnwindSafe,

§

impl<Start, End> Send for RangeInclusiveGenerator<Start, End>
where End: Send, Start: Send,

§

impl<Start, End> Sync for RangeInclusiveGenerator<Start, End>
where End: Sync, Start: Sync,

§

impl<Start, End> Unpin for RangeInclusiveGenerator<Start, End>
where End: Unpin, Start: Unpin,

§

impl<Start, End> UnwindSafe for RangeInclusiveGenerator<Start, End>
where End: UnwindSafe, Start: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.