Trait sp_runtime::traits::TryConvertBack
source · 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§
sourcefn 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
.