Trait gclient::ext::sp_runtime::traits::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.

Object Safety§

This trait is not object safe.

Implementors§

§

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