Trait IntoResult

Source
pub trait IntoResult<T> {
    type Err;

    // Required method
    fn into_result(self) -> Result<T, Self::Err>;
}
Expand description

Trait implemented by the return value of the expression specified in #[from_str(new = ...)].

Required Associated Types§

Required Methods§

Source

fn into_result(self) -> Result<T, Self::Err>

Implementations on Foreign Types§

Source§

impl<T> IntoResult<T> for Option<T>

Source§

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

Source§

type Err = E

Source§

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

Implementors§