Skip to main content

RandValue

Trait RandValue 

Source
pub trait RandValue {
    // Required method
    fn rand_value<R: Rng>(rand: &mut R) -> Self;
}

Required Methods§

Source

fn rand_value<R: Rng>(rand: &mut R) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RandValue for Box<[u8]>

Source§

fn rand_value<R: Rng>(rand: &mut R) -> Self

Source§

impl RandValue for Box<str>

Source§

fn rand_value<R: Rng>(rand: &mut R) -> Self

Source§

impl RandValue for bool

Source§

fn rand_value<R: Rng>(rand: &mut R) -> Self

Implementors§