pub struct CssPropertyRuleBuilder { /* private fields */ }Expand description
Builder for CssPropertyRule.
Implementations§
Source§impl CssPropertyRuleBuilder
impl CssPropertyRuleBuilder
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 origin<VALUE: Into<StyleSheetOrigin>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn origin<VALUE: Into<StyleSheetOrigin>>( &mut self, value: VALUE, ) -> &mut Self
Parent stylesheet’s origin.
Sourcepub fn property_name<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn property_name<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
Associated property name.
Sourcepub fn style<VALUE: Into<CssStyle>>(&mut self, value: VALUE) -> &mut Self
pub fn style<VALUE: Into<CssStyle>>(&mut self, value: VALUE) -> &mut Self
Associated style declaration.
Sourcepub fn build(&self) -> Result<CssPropertyRule, CssPropertyRuleBuilderError>
pub fn build(&self) -> Result<CssPropertyRule, CssPropertyRuleBuilderError>
Trait Implementations§
Source§impl Clone for CssPropertyRuleBuilder
impl Clone for CssPropertyRuleBuilder
Source§fn clone(&self) -> CssPropertyRuleBuilder
fn clone(&self) -> CssPropertyRuleBuilder
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 CssPropertyRuleBuilder
impl RefUnwindSafe for CssPropertyRuleBuilder
impl Send for CssPropertyRuleBuilder
impl Sync for CssPropertyRuleBuilder
impl Unpin for CssPropertyRuleBuilder
impl UnsafeUnpin for CssPropertyRuleBuilder
impl UnwindSafe for CssPropertyRuleBuilder
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