pub trait Check<T, Pre>where
Self: Sized,{
type State;
type Error;
// Required method
fn check(
self,
value: CheckState<T, Pre>,
) -> CheckOutcome<T, Self::State, Self::Error>;
// Provided methods
fn and<B, C>(self, b: B) -> And<Self, B, C>
where B: Check<T, Self::State>,
C: CombineErrorBuilder<Self::Error, B::Error> { ... }
fn or<B, C>(self, b: B) -> Or<Self, B, C>
where B: Check<T, Self::State>,
C: CombineErrorBuilder<Self::Error, B::Error> { ... }
}Required Associated Types§
Required Methods§
fn check( self, value: CheckState<T, Pre>, ) -> CheckOutcome<T, Self::State, Self::Error>
Provided Methods§
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.