Trait polkadot_sdk_frame::traits::MaybeConvert
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§
fn 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.