pub struct RuleUsageBuilder { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Implementations§
Source§impl RuleUsageBuilder
impl RuleUsageBuilder
Sourcepub fn style_sheet_id(&mut self, v: StyleSheetId) -> &mut Self
pub fn style_sheet_id(&mut self, v: StyleSheetId) -> &mut Self
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Sourcepub fn start_offset(&mut self, v: f64) -> &mut Self
pub fn start_offset(&mut self, v: f64) -> &mut Self
Offset of the start of the rule (including selector) from the beginning of the stylesheet.
Sourcepub fn end_offset(&mut self, v: f64) -> &mut Self
pub fn end_offset(&mut self, v: f64) -> &mut Self
Offset of the end of the rule body from the beginning of the stylesheet.
Sourcepub fn used(&mut self, v: bool) -> &mut Self
pub fn used(&mut self, v: bool) -> &mut Self
Indicates whether the rule was actually used by some element in the page.
pub fn build(&mut self) -> Result<RuleUsage, &'static str>
Trait Implementations§
Source§impl Clone for RuleUsageBuilder
impl Clone for RuleUsageBuilder
Source§fn clone(&self) -> RuleUsageBuilder
fn clone(&self) -> RuleUsageBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuleUsageBuilder
impl Debug for RuleUsageBuilder
Auto Trait Implementations§
impl Freeze for RuleUsageBuilder
impl RefUnwindSafe for RuleUsageBuilder
impl Send for RuleUsageBuilder
impl Sync for RuleUsageBuilder
impl Unpin for RuleUsageBuilder
impl UnwindSafe for RuleUsageBuilder
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