RootError

Trait RootError 

Source
pub trait RootError<M, Target: Error2>: SourceToTarget<M, (), (), Target> + Sized {
    // Provided methods
    fn build(self) -> Target { ... }
    fn build_with_location(self, location: Location) -> Target { ... }
    fn fail<T>(self) -> Result<T, Target> { ... }
    fn fail_with_location<T>(self, location: Location) -> Result<T, Target> { ... }
}

Provided Methods§

Source

fn build(self) -> Target

Source

fn build_with_location(self, location: Location) -> Target

Source

fn fail<T>(self) -> Result<T, Target>

Source

fn fail_with_location<T>(self, location: Location) -> Result<T, Target>

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.

Implementors§

Source§

impl<M, Target, C> RootError<M, Target> for C
where Target: Error2, C: SourceToTarget<M, (), (), Target>,