pub trait From<Src> {
type Output;
// Required method
fn cast(_: Src) -> Self::Output;
}
Expand description
The “cast from” operation
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.
pub trait From<Src> {
type Output;
// Required method
fn cast(_: Src) -> Self::Output;
}
The “cast from” operation