Trait sp_runtime::traits::MaybeConvert
source · pub trait MaybeConvert<A, B> {
// Required method
fn maybe_convert(a: A) -> Option<B>;
}
Expand description
Fallible conversion trait returning an Option. Generic over both source and destination types.
Required Methods§
sourcefn maybe_convert(a: A) -> Option<B>
fn maybe_convert(a: A) -> Option<B>
Attempt to make conversion.
Object Safety§
This trait is not object safe.