Trait tea_sdk::ResultExt

pub trait ResultExt {
    type Value;
    type Error;

    fn err_into<E>(self) -> Result<Self::Value, E>
    where
        E: From<Self::Error>
; }
Expand description

A helper trait to map the error variant of a Result to inferred type with From/Into

Required Associated Types§

Required Methods§

Map the error variant of a Result to inferred type with From/Into

Implementations on Foreign Types§

Implementors§