pub struct Selector {
pub parts: Vec<SelectorPart>,
pub specificity: Specificity,
}Expand description
A parsed CSS selector with pre-computed specificity.
Fields§
§parts: Vec<SelectorPart>The ordered parts that make up this compound selector.
specificity: SpecificityPre-computed specificity used for cascade ordering.
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