pub trait Make1<Arg>: Sized {
// Required method
fn make_1(arg: Arg) -> Self;
// Provided method
fn make(arg: Arg) -> Self { ... }
}
Expand description
Constructor with single argument.
Required Methods§
Provided Methods§
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.