[][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.


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

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

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

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

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

impl<R> Rng for R where
    R: RngCore + ?Sized

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

type Error = Infallible

The type returned in the event of a conversion error.

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.

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