pub enum Selector {
Id(String),
TagName(String),
Attribute(String, MatchType, String),
}
Expand description
The individual parts of the CompoundSelector
. For example, the selector
input[type="radio"]
has two parts, the TagName
and Attribute
selectors.
Variants§
Id(String)
Represents an id selector (e.g. #the-id
)
TagName(String)
Represents a tag name selector (e.g. input
)
Attribute(String, MatchType, String)
Represents an attribute selector (e.g. [type="radio"]
)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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