pub trait ToExtras<E: Extras<Self::Input>> {
type Input;
// Required method
fn to_extras(&self) -> E;
// Provided method
fn into_extras(self) -> E
where Self: Sized { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn into_extras(self) -> Ewhere
Self: Sized,
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.