Trait TryUnwrap

Source
pub trait TryUnwrap {
    type Val;

    // Required method
    fn try_unwrap(self) -> Result<Self::Val, String>;
}

Required Associated Types§

Required Methods§

Source

fn try_unwrap(self) -> Result<Self::Val, String>

Implementations on Foreign Types§

Source§

impl<T> TryUnwrap for Option<T>

Source§

type Val = T

Source§

fn try_unwrap(self) -> Result<Self::Val, String>

Source§

impl<T, E: Display> TryUnwrap for Result<T, E>

Source§

type Val = T

Source§

fn try_unwrap(self) -> Result<Self::Val, String>

Implementors§