Skip to main content

IntoOption

Trait IntoOption 

Source
pub trait IntoOption<T> {
    // Required method
    fn into_option(self) -> Option<T>;
}

Required Methodsยง

Source

fn into_option(self) -> Option<T>

Dyn Compatibilityยง

This trait is dyn compatible.

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

Implementations on Foreign Typesยง

Sourceยง

impl IntoOption<String> for &str

Sourceยง

impl IntoOption<String> for Cow<'_, str>

Sourceยง

impl IntoOption<String> for Option<&str>

Sourceยง

impl IntoOption<String> for Option<Cow<'_, str>>

Sourceยง

impl IntoOption<String> for Option<String>

Sourceยง

impl IntoOption<String> for String

Implementorsยง