pub trait Fill {
// Required method
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§
Object Safety§
This trait is not object safe.