[][src]Trait spirit::extension::IntoResult

pub trait IntoResult<T>: Sized {
    fn into_result(self) -> Result<T, AnyError>;
}

An internal trait to make working uniformly with the Builder and Result<Builder, Error> possible.

You should not need to interact with the trait directly.

The idea is that both the Builder and the Result<Builder, Error> can be turned into Result<Builder, Error>.

Required methods

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

Turns self into the result.

Loading content...

Implementations on Foreign Types

impl<T> IntoResult<T> for Result<T, AnyError>[src]

Loading content...

Implementors

impl<T> IntoResult<T> for T[src]

Loading content...