Skip to main content

ToSome

Trait ToSome 

Source
pub trait ToSome {
    // Required method
    fn to_some(self) -> Option<Self>
       where Self: Sized;
}

Required Methods§

Source

fn to_some(self) -> Option<Self>
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Sized> ToSome for T