Skip to main content

TryConvertBack

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".

Implementors§

Source§

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

Source§

impl TryConvertBack<AccountId20, MultiAccountId> for AccountId20Converter