[][src]Struct quickcheck::StdGen

pub struct StdGen<R> { /* fields omitted */ }

StdGen is the default implementation of Gen.

Values of type StdGen can be created with the gen function in this crate.

Methods

impl<R: RngCore> StdGen<R>[src]

pub fn new(rng: R, size: usize) -> StdGen<R>[src]

Returns a StdGen with the given configuration using any random number generator.

The size parameter controls the size of random values generated. For example, it specifies the maximum length of a randomly generated vector and also will specify the maximum magnitude of a randomly generated number.

Trait Implementations

impl<R: RngCore> Gen for StdGen<R>[src]

impl<R: RngCore> RngCore for StdGen<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for StdGen<R> where
    R: RefUnwindSafe

impl<R> Send for StdGen<R> where
    R: Send

impl<R> Sync for StdGen<R> where
    R: Sync

impl<R> Unpin for StdGen<R> where
    R: Unpin

impl<R> UnwindSafe for StdGen<R> where
    R: 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<R> Rng for R where
    R: RngCore + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,