Trait ResultExt

Source
pub trait ResultExt<T, E> {
    // Required methods
    fn map_into<U>(self) -> Result<U, E>
       where U: From<T>;
    fn map_err_into<F>(self) -> Result<T, F>
       where F: From<E>;
}

Required Methods§

Source

fn map_into<U>(self) -> Result<U, E>
where U: From<T>,

Source

fn map_err_into<F>(self) -> Result<T, F>
where F: From<E>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E> ResultExt<T, E> for Result<T, E>

Source§

fn map_into<U>(self) -> Result<U, E>
where U: From<T>,

Source§

fn map_err_into<F>(self) -> Result<T, F>
where F: From<E>,

Implementors§