Skip to main content

Creator

Trait Creator 

Source
pub trait Creator: Copy + Debug {
    type Algo: Algorithm;

    // Required method
    fn create(_: &Builder) -> Self::Algo;
}
Expand description

Constructs new instance of the algorithm.

Required Associated Types§

Source

type Algo: Algorithm

Algorithm instance associated with the trait

Required Methods§

Source

fn create(_: &Builder) -> Self::Algo

Creates new and empty algorithm instance.

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§