pub trait New {
type Config: Clone;
// Required method
fn new(config: &Self::Config) -> Self;
}Expand description
New instances are instantiable given a specified input of <Self as New>::Config.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".