Trait IntoResult

Source
pub trait IntoResult<T, E> {
    // Required method
    fn into_result(self) -> Result<T, E>;
}
Expand description

Converts a value into a Result. You can implement this for your own types if you want to use the inner! macro in more ergonomic ways.

Required Methods§

Source

fn into_result(self) -> Result<T, E>

Implementations on Foreign Types§

Source§

impl<T> IntoResult<T, ()> for Option<T>

Source§

fn into_result(self) -> Result<T, ()>

Source§

impl<T, E> IntoResult<T, E> for Result<T, E>

Source§

fn into_result(self) -> Result<T, E>

Implementors§