pub trait Convert<T, U> {
    // Required method
    fn convert(&self, from: T) -> U;
}
Expand description

Infallible conversion between two types.

Implementors may not allocate on the interpreter heap.

See core::convert::From. See ConvertMut.

Required Methods§

source

fn convert(&self, from: T) -> U

Performs the infallible conversion.

Implementors§