Trait gclient::ext::sp_runtime::traits::TryConvertBack
pub trait TryConvertBack<A, B>: TryConvert<A, B> {
// Required method
fn try_convert_back(b: B) -> Result<A, B>;
}
Expand description
Reversing fallible conversion trait which returns the argument in the case of being unable to convert back. Generic over both source and destination types.
Required Methods§
fn try_convert_back(b: B) -> Result<A, B>
fn try_convert_back(b: B) -> Result<A, B>
Attempt to make conversion back. If returning Result::Err, the inner must always be b
.
Object Safety§
This trait is not object safe.