referrerpolicy=no-referrer-when-downgrade

Trait polkadot_service::runtime_traits::ConvertBack

source ·
pub trait ConvertBack<A, B>: Convert<A, B> {
    // Required method
    fn convert_back(b: B) -> A;
}
Expand description

Reversing infallible conversion trait. Generic over both source and destination types.

This specifically reverses the conversion.

Required Methods§

source

fn convert_back(b: B) -> A

Make conversion back.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A> ConvertBack<Perquintill, <A as TypedGet>::Type> for WithMaximumOf<A>
where A: TypedGet, <A as TypedGet>::Type: RationalArg + From<u64>, u64: TryFrom<<A as TypedGet>::Type>, u128: TryFrom<<A as TypedGet>::Type>,

Implementors§

source§

impl<T> ConvertBack<T, T> for Identity