pub trait Convert<A, B> {
// Required method
fn convert(a: A) -> B;
}Expand description
Infallible conversion trait. Generic over both source and destination types.
Required Methods§
Object Safety§
This trait is not object safe.
pub trait Convert<A, B> {
// Required method
fn convert(a: A) -> B;
}Infallible conversion trait. Generic over both source and destination types.