Struct quickercheck::generate::Constant [] [src]

pub struct Constant<T>(pub T);

Trait Implementations

impl<T: Clone> Clone for Constant<T>
[src]

fn clone(&self) -> Constant<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Constant<T>
[src]

impl<T: Clone> Generator for Constant<T>
[src]

type Output = T

fn generate<R: Rng>(&self, _: &mut GenerateCtx<R>) -> T