pub trait Pred: Viewwhere
Self::V: SpecPred<Input = <Self::InputOwned as View>::V>,{
type Input<'a>: View<V = <Self::InputOwned as View>::V>;
type InputOwned: View;
// Required method
fn apply(&self, i: &Self::Input<'_>) -> bool;
}
Expand description
All predicates to be used in Refined
combinator must implement this trait.
Required Associated Types§
Sourcetype Input<'a>: View<V = <Self::InputOwned as View>::V>
type Input<'a>: View<V = <Self::InputOwned as View>::V>
The input type of the predicate.
Sourcetype InputOwned: View
type InputOwned: View
The owned version of the input type.
Required 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.