pub trait From<Src> {
type Output;
// Required method
fn cast(_: Src) -> Self::Output;
}Expand description
The “cast from” operation
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".