Trait InitializerTrait

Source
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§

Source

fn initialize() -> [T; N]

Generate an initalized array.

Provided Methods§

Source

fn init_group<G, const R: usize>() -> G
where G: GroupTrait<T, N, R>,

Initialize the group.

  • G - group
  • R - The R 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.

Implementors§