pub trait ResultExt<O, E> {
    // Required method
    fn map_auto<O2, E2>(self) -> Result<O2, E2>
       where O2: From<O>,
             E2: From<E>;
}
Expand description

An extension trait for Results.

Required Methods§

fn map_auto<O2, E2>(self) -> Result<O2, E2>
where O2: From<O>, E2: From<E>,

Convert the result into another result type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

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

§

fn map_auto<O2, E2>(self) -> Result<O2, E2>
where O2: From<O>, E2: From<E>,

Implementors§