Skip to main content

WrapStructErrorAs

Trait WrapStructErrorAs 

Source
pub trait WrapStructErrorAs<R: DomainReason>: Sized {
    // Required method
    fn wrap_as(self, reason: R, detail: impl Into<String>) -> StructError<R>;
}

Required Methods§

Source

fn wrap_as(self, reason: R, detail: impl Into<String>) -> StructError<R>

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<R1, R2> WrapStructErrorAs<R2> for StructError<R1>
where R1: DomainReason, R2: DomainReason,