pub struct CssPositionTryRuleBuilder { /* private fields */ }Expand description
Builder for CssPositionTryRule.
Implementations§
Source§impl CssPositionTryRuleBuilder
impl CssPositionTryRuleBuilder
Sourcepub fn name<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
The prelude dashed-ident name
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 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.
pub fn active<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<CssPositionTryRule, CssPositionTryRuleBuilderError>
pub fn build( &self, ) -> Result<CssPositionTryRule, CssPositionTryRuleBuilderError>
Trait Implementations§
Source§impl Clone for CssPositionTryRuleBuilder
impl Clone for CssPositionTryRuleBuilder
Source§fn clone(&self) -> CssPositionTryRuleBuilder
fn clone(&self) -> CssPositionTryRuleBuilder
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 CssPositionTryRuleBuilder
impl RefUnwindSafe for CssPositionTryRuleBuilder
impl Send for CssPositionTryRuleBuilder
impl Sync for CssPositionTryRuleBuilder
impl Unpin for CssPositionTryRuleBuilder
impl UnsafeUnpin for CssPositionTryRuleBuilder
impl UnwindSafe for CssPositionTryRuleBuilder
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