pub struct Not<T>(pub T);Expand description
Matches if the Predicate T does not match.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Predicate> Predicate for Not<T>
impl<T: Predicate> Predicate for Not<T>
fn matches(&self, node: &Node<'_>) -> bool
fn or<T: Predicate>(self, other: T) -> Or<Self, T>where
Self: Sized,
fn and<T: Predicate>(self, other: T) -> And<Self, T>where
Self: Sized,
fn not(self) -> Not<Self>where
Self: Sized,
fn child<T: Predicate>(self, other: T) -> Child<Self, T>where
Self: Sized,
fn descendant<T: Predicate>(self, other: T) -> Descendant<Self, T>where
Self: Sized,
impl<T: Copy> Copy for Not<T>
impl<T: Eq> Eq for Not<T>
impl<T> StructuralPartialEq for Not<T>
Auto Trait Implementations§
impl<T> Freeze for Not<T>where
T: Freeze,
impl<T> RefUnwindSafe for Not<T>where
T: RefUnwindSafe,
impl<T> Send for Not<T>where
T: Send,
impl<T> Sync for Not<T>where
T: Sync,
impl<T> Unpin for Not<T>where
T: Unpin,
impl<T> UnwindSafe for Not<T>where
T: 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