[][src]Trait resiter::ok_or_else::ResultOptionExt

pub trait ResultOptionExt<T, E, F> where
    T: Sized,
    E: Sized,
    F: FnOnce() -> E, 
{ fn inner_ok_or_else(self, f: F) -> Result<T, E>; }

Extension trait for doing Result<Option<T>, E> -> Result<T, E>

Required methods

fn inner_ok_or_else(self, f: F) -> Result<T, E>

Loading content...

Implementations on Foreign Types

impl<T, E, F> ResultOptionExt<T, E, F> for Result<Option<T>, E> where
    T: Sized,
    E: Sized,
    F: FnOnce() -> E, 
[src]

Loading content...

Implementors

Loading content...