artichoke_core::convert

Trait Convert

Source
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§