pub trait ModuleNew<B: Backend> {
type Config: Default = ();
// Required methods
fn new(n: u64) -> Self;
fn new_with(n: u64, config: Self::Config) -> Self;
}Expand description
Instantiate a new crate::layouts::Module.
Provided Associated Types§
Sourcetype Config: Default = ()
type Config: Default = ()
Backend-specific construction parameters; see
HalModuleImpl::Config.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".