pub enum AttributeMatchOp {
Exists,
Exact(String),
Prefix(String),
Suffix(String),
Substring(String),
Includes(String),
DashMatch(String),
}Expand description
Attribute matching operator per W3C CSS Selectors Level 4.
Variants§
Exists
[attr] - Element has attribute regardless of value.
Exact(String)
[attr=val] - Element attribute equals exact value.
Prefix(String)
[attr^=val] - Element attribute value begins with prefix.
Suffix(String)
[attr$=val] - Element attribute value ends with suffix.
Substring(String)
[attr*=val] - Element attribute value contains substring.
Includes(String)
[attr~=val] - Element attribute value is a whitespace-separated list containing word.
DashMatch(String)
[attr|=val] - Element attribute value is exactly val or starts with val followed by ‘-’.
Trait Implementations§
Source§impl Clone for AttributeMatchOp
impl Clone for AttributeMatchOp
Source§impl Debug for AttributeMatchOp
impl Debug for AttributeMatchOp
impl Eq for AttributeMatchOp
Source§impl PartialEq for AttributeMatchOp
impl PartialEq for AttributeMatchOp
impl StructuralPartialEq for AttributeMatchOp
Auto Trait Implementations§
impl Forget for AttributeMatchOp
impl Freeze for AttributeMatchOp
impl Move for AttributeMatchOp
impl RefUnwindSafe for AttributeMatchOp
impl Send for AttributeMatchOp
impl Sync for AttributeMatchOp
impl Unpin for AttributeMatchOp
impl UnsafeUnpin for AttributeMatchOp
impl UnwindSafe for AttributeMatchOp
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