pub enum AttributeOperator<'a> {
Exists,
Matches(&'a str),
Contains(&'a str),
StartsWith(&'a str),
}
Expand description
An attribute selector operator.
Variants§
Exists
[attr]
Matches(&'a str)
[attr=value]
Contains(&'a str)
[attr~=value]
StartsWith(&'a str)
[attr|=value]
Implementations§
Trait Implementations§
source§impl<'a> Clone for AttributeOperator<'a>
impl<'a> Clone for AttributeOperator<'a>
source§fn clone(&self) -> AttributeOperator<'a>
fn clone(&self) -> AttributeOperator<'a>
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<'a> Debug for AttributeOperator<'a>
impl<'a> Debug for AttributeOperator<'a>
source§impl<'a> PartialEq for AttributeOperator<'a>
impl<'a> PartialEq for AttributeOperator<'a>
impl<'a> Copy for AttributeOperator<'a>
impl<'a> StructuralPartialEq for AttributeOperator<'a>
Auto Trait Implementations§
impl<'a> Freeze for AttributeOperator<'a>
impl<'a> RefUnwindSafe for AttributeOperator<'a>
impl<'a> Send for AttributeOperator<'a>
impl<'a> Sync for AttributeOperator<'a>
impl<'a> Unpin for AttributeOperator<'a>
impl<'a> UnwindSafe for AttributeOperator<'a>
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
)