[][src]Struct bolero_generator::bounded::BoundedGenerator

pub struct BoundedGenerator<G, B> { /* fields omitted */ }

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]

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

Auto Trait Implementations

impl<G, B> RefUnwindSafe for BoundedGenerator<G, B> where
    B: RefUnwindSafe,
    G: RefUnwindSafe

impl<G, B> Send for BoundedGenerator<G, B> where
    B: Send,
    G: Send

impl<G, B> Sync for BoundedGenerator<G, B> where
    B: Sync,
    G: Sync

impl<G, B> Unpin for BoundedGenerator<G, B> where
    B: Unpin,
    G: Unpin

impl<G, B> UnwindSafe for BoundedGenerator<G, B> where
    B: UnwindSafe,
    G: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.