pub trait TypeConversion<T, U> {
// Required method
fn convert(val: T) -> U;
}
Expand description
Defines a rule to convert a type T
to a type U
.
Required Methods§
Object Safety§
This trait is not object safe.
pub trait TypeConversion<T, U> {
// Required method
fn convert(val: T) -> U;
}
Defines a rule to convert a type T
to a type U
.