Skip to main content

ErrorPolicyOf

Trait ErrorPolicyOf 

Source
pub trait ErrorPolicyOf<I: Operand, D: Diagnostic>: Clone + 'static {
    type Output: Operand;

    // Required method
    fn build(&self, input: I) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn build(&self, input: I) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<I, D, A> ErrorPolicyOf<I, D> for Replace<A>
where D: Diagnostic, A: Clone + 'static, ReplaceErrorsOf<D, A>: Operation, I: Apply<ReplaceErrorsOf<D, A>>,

Source§

impl<I, D, C> ErrorPolicyOf<I, D> for RaiseWhen<C>
where D: Diagnostic, C: Clone + 'static, RaiseWhenErrorsOf<D, C>: Operation, I: Apply<RaiseWhenErrorsOf<D, C>>,

Source§

impl<I: Apply<DropErrorsOf<D>>, D: Diagnostic> ErrorPolicyOf<I, D> for Drop

Source§

impl<I: Apply<RaiseErrorsOf<D>>, D: Diagnostic> ErrorPolicyOf<I, D> for Raise