pub trait InitializerTrait<T, const N: usize> {
// Required method
fn initialize() -> [T; N];
// Provided method
fn init_group<G, const R: usize>() -> G
where G: GroupTrait<T, N, R> { ... }
}
Expand description
A trait for initializing the group.
T
- A data generated by this.(A element of the group)N
- The number of datas generated by this.(The number of the elements of the group)
Required Methods§
Sourcefn initialize() -> [T; N]
fn initialize() -> [T; N]
Generate an initalized array.
Provided Methods§
Sourcefn init_group<G, const R: usize>() -> Gwhere
G: GroupTrait<T, N, R>,
fn init_group<G, const R: usize>() -> Gwhere
G: GroupTrait<T, N, R>,
Initialize the group.
G
- groupR
- TheR
of group
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.