Trait Module

Source
pub trait Module<T>: Forward<T> + Backward {
    type Config;
    type Params;

    // Required methods
    fn new(config: Self::Config) -> Self;
    fn config(&self) -> &Self::Config;
    fn config_mut(&mut self) -> &mut Self::Config;
    fn parameters(&self) -> Self::Params;
}

Required Associated Types§

Required Methods§

Source

fn new(config: Self::Config) -> Self

Source

fn config(&self) -> &Self::Config

Source

fn config_mut(&mut self) -> &mut Self::Config

Source

fn parameters(&self) -> Self::Params

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§