pub struct CssTryRuleBuilder { /* private fields */ }Expand description
Builder for CssTryRule.
Implementations§
Source§impl CssTryRuleBuilder
impl CssTryRuleBuilder
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.
Sourcepub fn build(&self) -> Result<CssTryRule, CssTryRuleBuilderError>
pub fn build(&self) -> Result<CssTryRule, CssTryRuleBuilderError>
Trait Implementations§
Source§impl Clone for CssTryRuleBuilder
impl Clone for CssTryRuleBuilder
Source§fn clone(&self) -> CssTryRuleBuilder
fn clone(&self) -> CssTryRuleBuilder
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 CssTryRuleBuilder
impl RefUnwindSafe for CssTryRuleBuilder
impl Send for CssTryRuleBuilder
impl Sync for CssTryRuleBuilder
impl Unpin for CssTryRuleBuilder
impl UnsafeUnpin for CssTryRuleBuilder
impl UnwindSafe for CssTryRuleBuilder
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