Skip to main content

ErrorPolicy

Trait ErrorPolicy 

Source
pub trait ErrorPolicy<I: Operand>: 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, A> ErrorPolicy<I> for Replace<A>
where A: Clone + 'static, Self: Operation, I: Apply<Self>,

Source§

type Output = <I as Apply<Replace<A>>>::Output

Source§

impl<I, C> ErrorPolicy<I> for RaiseWhen<C>
where C: Clone + 'static, Self: Operation, I: Apply<Self>,

Source§

impl<I: Apply<Self>> ErrorPolicy<I> for Drop

Source§

impl<I: Apply<Self>> ErrorPolicy<I> for Raise