pub struct KeyframesRuleBuilder { /* private fields */ }Expand description
Builder for KeyframesRule.
Implementations§
Source§impl KeyframesRuleBuilder
impl KeyframesRuleBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
CSS keyframed animation’s name.
Sourcepub fn keyframes<VALUE: Into<Vec<KeyframeStyle>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn keyframes<VALUE: Into<Vec<KeyframeStyle>>>( &mut self, value: VALUE, ) -> &mut Self
List of animation keyframes.
Sourcepub fn build(&self) -> Result<KeyframesRule, KeyframesRuleBuilderError>
pub fn build(&self) -> Result<KeyframesRule, KeyframesRuleBuilderError>
Trait Implementations§
Source§impl Clone for KeyframesRuleBuilder
impl Clone for KeyframesRuleBuilder
Source§fn clone(&self) -> KeyframesRuleBuilder
fn clone(&self) -> KeyframesRuleBuilder
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 KeyframesRuleBuilder
impl RefUnwindSafe for KeyframesRuleBuilder
impl Send for KeyframesRuleBuilder
impl Sync for KeyframesRuleBuilder
impl Unpin for KeyframesRuleBuilder
impl UnsafeUnpin for KeyframesRuleBuilder
impl UnwindSafe for KeyframesRuleBuilder
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