[][src]Trait artichoke_core::convert::Convert

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

Infallible conversion between two types.

Implementors may not allocate on the interpreter heap.

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

Required methods

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

Performs the infallible conversion.

Loading content...

Implementors

Loading content...