Trait rand::Fill

source · []
pub trait Fill {
    fn try_fill<R: Rng + ?Sized>(&mut self, rng: &mut R) -> Result<(), Error>;
Expand description

Types which may be filled with random data

This trait allows arrays to be efficiently filled with random data.

Implementations are expected to be portable across machines unless clearly documented otherwise (see the Chapter on Portability).

Required methods

Fill self with random data

Implementations on Foreign Types