Trait OptionToResult

Source
pub trait OptionToResult<T> {
    // Required method
    fn to_result(self, error_str: &str) -> Result<T>;
}

Required Methods§

Source

fn to_result(self, error_str: &str) -> Result<T>

Implementations on Foreign Types§

Source§

impl<T> OptionToResult<T> for Option<T>

Source§

fn to_result(self, error_str: &str) -> Result<T>

Implementors§