Trait sp_runtime::traits::Morph

source ·
pub trait Morph<A> {
    type Outcome;

    fn morph(a: A) -> Self::Outcome;
}
Expand description

Extensible conversion trait. Generic over only source type, with destination type being associated.

Required Associated Types§

The type into which A is mutated.

Required Methods§

Make conversion.

Implementors§

A structure that performs identity conversion.