pub struct Selector {
pub subject: CompoundSelector,
pub chain: Vec<(Combinator, CompoundSelector)>,
}Expand description
A single CSS selector (complex selector).
Stored in right-to-left order: the subject (rightmost compound) is matched first, then combinators walk leftward through ancestors/siblings.
Fields§
§subject: CompoundSelectorThe rightmost compound selector (the subject to match).
chain: Vec<(Combinator, CompoundSelector)>Chain of (combinator, compound) walking leftward from the subject.
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 UnsafeUnpin 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