Skip to main content

WriteShape

Trait WriteShape 

Source
pub trait WriteShape {
    type Error<CV: Rejection>;
    type Or<S: WriteShape>: WriteShape;
}
Expand description

Required Associated Types§

Source

type Error<CV: Rejection>

The error a write of this shape returns for the constraint violation CV.

Source

type Or<S: WriteShape>: WriteShape

The shape of a write that performs a write of this shape followed by one of shape S: it rejects when either does.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl WriteShape for Faults

Source§

type Error<CV: Rejection> = Fault<Profile<false, true, true>>

Source§

type Or<S: WriteShape> = S

Source§

impl WriteShape for Rejects

Source§

type Error<CV: Rejection> = Fail<CV, Profile<false, true, true>>

Source§

type Or<S: WriteShape> = Rejects