Trait Fill

pub trait Fill: Sized

Support filling a slice with random data

This trait allows slices of "plain data" types to be efficiently filled with random data.

Implementations are expected to be portable across machines unless clearly documented otherwise (see the Chapter on Portability). The implementations provided achieve this by byte-swapping on big-endian machines.

Required Methods

fn fill_slice<R: Rng + ?Sized>(this: &mut [Self], rng: &mut R)

Fill this with random data

Implementors