referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::traits

Trait ConvertBack

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§

fn convert_back(b: B) -> A

Make conversion back.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

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

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