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§