cairo_lang_diagnostics

Trait ToMaybe

source
pub trait ToMaybe<T> {
    // Required method
    fn to_maybe(self) -> Maybe<T>;
}
Expand description

Temporary trait to allow conversions from the old Option<T> mechanism to Maybe<T>.

Required Methods§

source

fn to_maybe(self) -> Maybe<T>

Implementations on Foreign Types§

source§

impl<T> ToMaybe<T> for Option<T>

source§

fn to_maybe(self) -> Maybe<T>

Implementors§