pub struct Selector { /* private fields */ }Expand description
A complete selector. Components are stored right-to-left for efficient matching.
Implementations§
Source§impl Selector
impl Selector
pub fn new(components: Vec<Component>, specificity: Specificity) -> Self
pub fn components(&self) -> &[Component]
pub fn specificity(&self) -> Specificity
Trait Implementations§
impl StructuralPartialEq for Selector
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