pub struct Specificity {
pub a: i64,
pub b: i64,
pub c: i64,
pub components: Option<Vec<SpecificityComponent>>,
}Expand description
Specificity: https://drafts.csswg.org/selectors/#specificity-rules
Experimental: may change without notice.
Fields§
§a: i64The a component, which represents the number of ID selectors.
b: i64The b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.
c: i64The c component, which represents the number of type selectors and pseudo-elements.
components: Option<Vec<SpecificityComponent>>Per-simple-selector contributions used to explain this specificity.
Experimental: may change without notice.
Trait Implementations§
Source§impl Clone for Specificity
impl Clone for Specificity
Source§impl Debug for Specificity
impl Debug for Specificity
Source§impl Default for Specificity
impl Default for Specificity
Source§impl<'de> Deserialize<'de> for Specificity
impl<'de> Deserialize<'de> for Specificity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Specificity
impl PartialEq for Specificity
Source§impl Serialize for Specificity
impl Serialize for Specificity
impl StructuralPartialEq for Specificity
Auto Trait Implementations§
impl Forget for Specificity
impl Freeze for Specificity
impl RefUnwindSafe for Specificity
impl Send for Specificity
impl Sync for Specificity
impl Unpin for Specificity
impl UnsafeUnpin for Specificity
impl UnwindSafe for Specificity
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