Skip to main content

IntoAs

Trait IntoAs 

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

Required Methods§

Source

fn into_as( self, reason: R, detail: impl Into<String>, ) -> Result<T, 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.

Implementations on Foreign Types§

Source§

impl<T, E, R> IntoAs<T, R> for Result<T, E>
where E: UnstructuredSource, R: DomainReason,

Source§

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

Implementors§