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