Trait std::result::ToResult

pub trait ToResult<T, E> {
    fn to_result(&self) -> Result<T, E>;
}

A generic trait for converting a value to a Result

Required Methods

fn to_result(&self) -> Result<T, E>

Convert to the result type

Implementors