Trait sp_runtime::traits::Convert[][src]

pub trait Convert<A, B> {
    fn convert(a: A) -> B;
}

Extensible conversion trait. Generic over both source and destination types.

Required methods

fn convert(a: A) -> B[src]

Make conversion.

Loading content...

Implementations on Foreign Types

impl<A, B: Default> Convert<A, B> for ()[src]

Loading content...

Implementors

impl<A, B: From<A>> Convert<A, B> for ConvertInto[src]

impl<T> Convert<T, T> for Identity[src]

Loading content...