pub struct AnimationBuilder { /* private fields */ }Available on crate features
experimental and Animation and Runtime and DOM only.Implementations§
Source§impl AnimationBuilder
impl AnimationBuilder
Sourcepub fn paused_state(&mut self, v: bool) -> &mut Self
pub fn paused_state(&mut self, v: bool) -> &mut Self
Animation’s internal paused state.
Sourcepub fn play_state(&mut self, v: String) -> &mut Self
pub fn play_state(&mut self, v: String) -> &mut Self
Animation’s play state.
Sourcepub fn playback_rate(&mut self, v: f64) -> &mut Self
pub fn playback_rate(&mut self, v: f64) -> &mut Self
Animation’s playback rate.
Sourcepub fn start_time(&mut self, v: f64) -> &mut Self
pub fn start_time(&mut self, v: f64) -> &mut Self
Animation’s start time.
Sourcepub fn current_time(&mut self, v: f64) -> &mut Self
pub fn current_time(&mut self, v: f64) -> &mut Self
Animation’s current time.
Sourcepub fn type(&mut self, v: AnimationType) -> &mut Self
pub fn type(&mut self, v: AnimationType) -> &mut Self
Animation type of Animation.
Sourcepub fn source(&mut self, v: AnimationEffect) -> &mut Self
pub fn source(&mut self, v: AnimationEffect) -> &mut Self
Animation’s source animation node.
Sourcepub fn css_id(&mut self, v: String) -> &mut Self
pub fn css_id(&mut self, v: String) -> &mut Self
A unique ID for Animation representing the sources that triggered this CSS
animation/transition.
pub fn build(&mut self) -> Result<Animation, &'static str>
Trait Implementations§
Source§impl Clone for AnimationBuilder
impl Clone for AnimationBuilder
Source§fn clone(&self) -> AnimationBuilder
fn clone(&self) -> AnimationBuilder
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 moreSource§impl Debug for AnimationBuilder
impl Debug for AnimationBuilder
Auto Trait Implementations§
impl Freeze for AnimationBuilder
impl RefUnwindSafe for AnimationBuilder
impl Send for AnimationBuilder
impl Sync for AnimationBuilder
impl Unpin for AnimationBuilder
impl UnwindSafe for AnimationBuilder
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