domain_runtime_primitives

Trait TryConvertBack

source
pub trait TryConvertBack<A, B>: Convert<A, B> {
    // Required method
    fn try_convert_back(b: B) -> Option<A>;
}
Expand description

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

Required Methods§

source

fn try_convert_back(b: B) -> Option<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§

source§

impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter

source§

impl TryConvertBack<AccountId20, MultiAccountId> for AccountId20Converter