pub struct CssRuleBuilder { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Implementations§
Source§impl CssRuleBuilder
impl CssRuleBuilder
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 selector_list(&mut self, v: SelectorList) -> &mut Self
pub fn selector_list(&mut self, v: SelectorList) -> &mut Self
Rule selector data.
Sourcepub fn origin(&mut self, v: StyleSheetOrigin) -> &mut Self
pub fn origin(&mut self, v: StyleSheetOrigin) -> &mut Self
Parent stylesheet’s origin.
Sourcepub fn media(&mut self, v: Vec<CssMedia>) -> &mut Self
pub fn media(&mut self, v: Vec<CssMedia>) -> &mut Self
Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
pub fn build(&mut self) -> Result<CssRule, &'static str>
Trait Implementations§
Source§impl Clone for CssRuleBuilder
impl Clone for CssRuleBuilder
Source§fn clone(&self) -> CssRuleBuilder
fn clone(&self) -> CssRuleBuilder
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 CssRuleBuilder
impl Debug for CssRuleBuilder
Auto Trait Implementations§
impl Freeze for CssRuleBuilder
impl RefUnwindSafe for CssRuleBuilder
impl Send for CssRuleBuilder
impl Sync for CssRuleBuilder
impl Unpin for CssRuleBuilder
impl UnwindSafe for CssRuleBuilder
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