pub struct RuleUsageBuilder { /* private fields */ }Expand description
Builder for RuleUsage.
Implementations§
Source§impl RuleUsageBuilder
impl RuleUsageBuilder
Sourcepub fn style_sheet_id<VALUE: Into<StyleSheetId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn style_sheet_id<VALUE: Into<StyleSheetId>>( &mut self, value: VALUE, ) -> &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<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn start_offset<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Offset of the start of the rule (including selector) from the beginning of the stylesheet.
Sourcepub fn end_offset<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn end_offset<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Offset of the end of the rule body from the beginning of the stylesheet.
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 moreAuto Trait Implementations§
impl Freeze for RuleUsageBuilder
impl RefUnwindSafe for RuleUsageBuilder
impl Send for RuleUsageBuilder
impl Sync for RuleUsageBuilder
impl Unpin for RuleUsageBuilder
impl UnsafeUnpin 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