pub struct RuleUsage { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
CSS coverage information.
Implementations§
Source§impl RuleUsage
impl RuleUsage
pub fn builder() -> RuleUsageBuilder
Sourcepub fn style_sheet_id(&self) -> &StyleSheetId
pub fn style_sheet_id(&self) -> &StyleSheetId
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Sourcepub fn start_offset(&self) -> f64
pub fn start_offset(&self) -> f64
Offset of the start of the rule (including selector) from the beginning of the stylesheet.
Sourcepub fn end_offset(&self) -> f64
pub fn end_offset(&self) -> f64
Offset of the end of the rule body from the beginning of the stylesheet.
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 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