pub trait Fill {
// Required method
fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
where R: Rng + ?Sized;
}
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.