Skip to main content

ResultSetExt

Trait ResultSetExt 

Source
pub trait ResultSetExt {
    type Ok;
    type Err;
    type Value;

    // Required method
    fn into_superset<E>(self) -> Result<Self::Ok, ErrorSet<Self::Value, E>>
       where E: SupersetOf<Self::Err>;
}
Expand description

Extension trait for results, to convert errorsets into supersets.

Required Associated Types§

Required Methods§

Source

fn into_superset<E>(self) -> Result<Self::Ok, ErrorSet<Self::Value, E>>
where E: SupersetOf<Self::Err>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E, V> ResultSetExt for Result<T, ErrorSet<V, E>>

Source§

type Ok = T

Source§

type Err = E

Source§

type Value = V

Source§

fn into_superset<E2>(self) -> Result<T, ErrorSet<V, E2>>
where E2: SupersetOf<E>,

Implementors§