pub struct MessagePredicate<P> { /* private fields */ }
Expand description
Predicate for the message of a CapturedEvent
returned by the message()
function.
Trait Implementations§
Source§impl<Rhs, P> BitAnd<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
impl<Rhs, P> BitAnd<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
Source§impl<Rhs, P> BitOr<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
impl<Rhs, P> BitOr<Rhs> for MessagePredicate<P>where
Self: PredicateReflection,
Rhs: PredicateReflection,
Source§impl<P: Clone> Clone for MessagePredicate<P>
impl<P: Clone> Clone for MessagePredicate<P>
Source§fn clone(&self) -> MessagePredicate<P>
fn clone(&self) -> MessagePredicate<P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P: Debug> Debug for MessagePredicate<P>
impl<P: Debug> Debug for MessagePredicate<P>
Source§impl<P: Predicate<str>> Display for MessagePredicate<P>
impl<P: Predicate<str>> Display for MessagePredicate<P>
Source§impl<P: PartialEq> PartialEq for MessagePredicate<P>
impl<P: PartialEq> PartialEq for MessagePredicate<P>
Source§impl<P: Predicate<str>> Predicate<CapturedEvent<'_>> for MessagePredicate<P>
impl<P: Predicate<str>> Predicate<CapturedEvent<'_>> for MessagePredicate<P>
Source§fn eval(&self, variable: &CapturedEvent<'_>) -> bool
fn eval(&self, variable: &CapturedEvent<'_>) -> bool
Execute this
Predicate
against variable
, returning the resulting
boolean.Source§impl<P: Predicate<str>> PredicateReflection for MessagePredicate<P>
impl<P: Predicate<str>> PredicateReflection for MessagePredicate<P>
impl<P: Copy> Copy for MessagePredicate<P>
impl<P: Eq> Eq for MessagePredicate<P>
impl<P> StructuralPartialEq for MessagePredicate<P>
Auto Trait Implementations§
impl<P> Freeze for MessagePredicate<P>where
P: Freeze,
impl<P> RefUnwindSafe for MessagePredicate<P>where
P: RefUnwindSafe,
impl<P> Send for MessagePredicate<P>where
P: Send,
impl<P> Sync for MessagePredicate<P>where
P: Sync,
impl<P> Unpin for MessagePredicate<P>where
P: Unpin,
impl<P> UnwindSafe for MessagePredicate<P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
§fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical AND of two
Predicate
results, returning the result. Read more