Skip to main content

Generator

Trait Generator 

Source
pub trait Generator<T> {
    // Required method
    fn generate(&mut self) -> T;
}
Expand description

A generator for initializing the entries in a matrix via Matrix::new.

Required Methods§

Source

fn generate(&mut self) -> T

Implementors§

Source§

impl<T> Generator<T> for T
where T: Clone,

Source§

impl<T, F> Generator<T> for Init<F>
where F: FnMut() -> T,