[−][src]Trait mod_utilities::IntoResult
Allows the creation of a Result with a custom Err from a container type
Associated Types
type Value
The inner value type of the container, which becomes the Ok variant of Result when into_result
is called
Required methods
fn into_result<E, F>(self, if_none: F) -> Result<Self::Value, E> where
F: FnOnce() -> E,
F: FnOnce() -> E,
Convert a container to a Result with a custom Err
Implementations on Foreign Types
impl<T> IntoResult for Option<T>
[src]
type Value = T
fn into_result<E, F>(self, if_none: F) -> Result<Self::Value, E> where
F: FnOnce() -> E,
[src]
F: FnOnce() -> E,