pub trait Convert<T, U> {
// Required method
fn convert(&self, from: T) -> U;
}Expand description
Infallible conversion between two types.
Implementers may not allocate on the interpreter heap.
See core::convert::From.
See ConvertMut.
pub trait Convert<T, U> {
// Required method
fn convert(&self, from: T) -> U;
}Infallible conversion between two types.
Implementers may not allocate on the interpreter heap.
See core::convert::From.
See ConvertMut.