pub enum Predicate {
AttrEquals {
attr: String,
value: String,
},
Contains {
attr: String,
substr: String,
},
Position(usize),
AttrExists {
attr: String,
},
}Expand description
A predicate inside square brackets [...].
Variants§
AttrEquals
[@attr='value'] — exact attribute match.
Contains
[contains(@attr, 'substr')] — attribute substring match.
Position(usize)
[position()=N] — 1-based position among siblings of same type.
AttrExists
[@attr] — attribute existence check.
Trait Implementations§
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
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