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§
fn new(config: Self::Config) -> Self
fn config(&self) -> &Self::Config
fn config_mut(&mut self) -> &mut Self::Config
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.