pub struct Name<T>(pub T);Expand description
Matches Element Node with name T.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<'a> Predicate for Name<&'a str>
impl<'a> Predicate for Name<&'a str>
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 Name<T>
impl<T: Eq> Eq for Name<T>
impl<T> StructuralPartialEq for Name<T>
Auto Trait Implementations§
impl<T> Freeze for Name<T>where
T: Freeze,
impl<T> RefUnwindSafe for Name<T>where
T: RefUnwindSafe,
impl<T> Send for Name<T>where
T: Send,
impl<T> Sync for Name<T>where
T: Sync,
impl<T> Unpin for Name<T>where
T: Unpin,
impl<T> UnwindSafe for Name<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