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

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

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

Turns self into the result.

Implementations on Foreign Types

Implementors