pub struct RuleUsage {
pub styleSheetId: StyleSheetId,
pub startOffset: f64,
pub endOffset: f64,
pub used: bool,
}Expand description
CSS coverage information.
Fields§
§styleSheetId: StyleSheetIdThe css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
startOffset: f64Offset of the start of the rule (including selector) from the beginning of the stylesheet.
endOffset: f64Offset of the end of the rule body from the beginning of the stylesheet.
used: boolIndicates whether the rule was actually used by some element in the page.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleUsage
impl<'de> Deserialize<'de> for RuleUsage
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
Auto Trait Implementations§
impl Freeze for RuleUsage
impl RefUnwindSafe for RuleUsage
impl Send for RuleUsage
impl Sync for RuleUsage
impl Unpin for RuleUsage
impl UnsafeUnpin for RuleUsage
impl UnwindSafe for RuleUsage
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