pub trait WordFiller {
// Required method
fn generate(&mut self) -> u16;
// Provided methods
fn generate_array<const N: usize>(&mut self) -> [Word; N] { ... }
fn generate_boxed_array<const N: usize>(&mut self) -> Box<[Word; N]> { ... }
}Expand description
Trait that describes types that can be used to create the data for an uninitialized Word.
This is used with Word::new_uninit to create uninitialized Words.
Required Methods§
Provided 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.