Trait racetime::ResultExt

source ·
pub trait ResultExt {
    type Ok;

    // Required method
    fn to_racetime(self) -> Result<Self::Ok, Error>;
}
Expand description

A convenience trait for converting results to use this crate’s Error type.

Required Associated Types§

Required Methods§

source

fn to_racetime(self) -> Result<Self::Ok, Error>

Convert the error to this crate’s Error type using the Error::Custom variant.

Implementations on Foreign Types§

source§

impl<T, E: Error + Send + Sync + 'static> ResultExt for Result<T, E>

§

type Ok = T

source§

fn to_racetime(self) -> Result<T, Error>

Implementors§