[−][src]Struct bolero_generator::bounded::BoundedGenerator
Implementations
impl<T: BoundedValue<B>, G: ValueGenerator<Output = T>, B: RangeBounds<T::BoundValue>> BoundedGenerator<G, B>
[src]
pub fn new(generator: G, range_bounds: B) -> Self
[src]
pub fn bounds<NewB: RangeBounds<T>>(
self,
range_bounds: NewB
) -> BoundedGenerator<G, NewB>
[src]
self,
range_bounds: NewB
) -> BoundedGenerator<G, NewB>
Trait Implementations
impl<G: Debug, B: Debug> Debug for BoundedGenerator<G, B>
[src]
impl<T: BoundedValue<B>, G: ValueGenerator<Output = T>, B: RangeBounds<T::BoundValue>> ValueGenerator for BoundedGenerator<G, B>
[src]
type Output = T
fn generate<D: Driver>(&self, driver: &mut D) -> Option<T>
[src]
fn mutate<D: Driver>(
&self,
driver: &mut D,
value: &mut Self::Output
) -> Option<()>
[src]
&self,
driver: &mut D,
value: &mut Self::Output
) -> Option<()>
fn map<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
[src]
fn map_gen<F: Fn(Self::Output) -> T, T>(self, map: F) -> MapGenerator<Self, F>
[src]
fn and_then<F: Fn(Self::Output) -> T, T: ValueGenerator>(
self,
and_then: F
) -> AndThenGenerator<Self, F>
[src]
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>
[src]
self,
and_then: F
) -> AndThenGenerator<Self, F>
fn filter<F: Fn(&Self::Output) -> bool>(
self,
filter: F
) -> FilterGenerator<Self, F>
[src]
self,
filter: F
) -> FilterGenerator<Self, F>
fn filter_gen<F: Fn(&Self::Output) -> bool>(
self,
filter: F
) -> FilterGenerator<Self, F>
[src]
self,
filter: F
) -> FilterGenerator<Self, F>
fn filter_map<F: Fn(Self::Output) -> Option<T>, T>(
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
[src]
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>
[src]
self,
filter_map: F
) -> FilterMapGenerator<Self, F>
Auto Trait Implementations
impl<G, B> RefUnwindSafe for BoundedGenerator<G, B> where
B: RefUnwindSafe,
G: RefUnwindSafe,
B: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, B> Send for BoundedGenerator<G, B> where
B: Send,
G: Send,
B: Send,
G: Send,
impl<G, B> Sync for BoundedGenerator<G, B> where
B: Sync,
G: Sync,
B: Sync,
G: Sync,
impl<G, B> Unpin for BoundedGenerator<G, B> where
B: Unpin,
G: Unpin,
B: Unpin,
G: Unpin,
impl<G, B> UnwindSafe for BoundedGenerator<G, B> where
B: UnwindSafe,
G: UnwindSafe,
B: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,