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§
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>
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.