pub struct Or<P: ?Sized, Q: ?Sized> { /* private fields */ }Expand description
Represents predicates that are satisfied when either P or Q (or both) are satisfied.
Trait Implementations§
Source§impl<P: Ord + ?Sized, Q: Ord + ?Sized> Ord for Or<P, Q>
impl<P: Ord + ?Sized, Q: Ord + ?Sized> Ord for Or<P, Q>
Source§impl<P: PartialOrd + ?Sized, Q: PartialOrd + ?Sized> PartialOrd for Or<P, Q>
impl<P: PartialOrd + ?Sized, Q: PartialOrd + ?Sized> PartialOrd for Or<P, Q>
Source§impl<T: ?Sized, P: Predicate<T> + ?Sized, Q: Predicate<T> + ?Sized> Predicate<T> for Or<P, Q>
impl<T: ?Sized, P: Predicate<T> + ?Sized, Q: Predicate<T> + ?Sized> Predicate<T> for Or<P, Q>
Source§type Error = BothError<<P as Predicate<T>>::Error, <Q as Predicate<T>>::Error>
type Error = BothError<<P as Predicate<T>>::Error, <Q as Predicate<T>>::Error>
The associated error type which is used to represent checks.
Source§fn check(value: &T) -> Result<(), Self::Error>
fn check(value: &T) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreimpl<P: Copy + ?Sized, Q: Copy + ?Sized> Copy for Or<P, Q>
impl<P: Eq + ?Sized, Q: Eq + ?Sized> Eq for Or<P, Q>
impl<P: ?Sized, Q: ?Sized> StructuralPartialEq for Or<P, Q>
Auto Trait Implementations§
impl<P, Q> Freeze for Or<P, Q>
impl<P, Q> RefUnwindSafe for Or<P, Q>
impl<P, Q> Send for Or<P, Q>
impl<P, Q> Sync for Or<P, Q>
impl<P, Q> Unpin for Or<P, Q>
impl<P, Q> UnwindSafe for Or<P, Q>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more