cairo_lang_utils

Trait OptionFrom

source
pub trait OptionFrom<T>
where Self: Sized,
{ // Required method fn option_from(other: T) -> Option<Self>; }
Expand description

Similar to From / TryFrom, but returns an option.

Required Methods§

source

fn option_from(other: T) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§