pub struct Animation { /* private fields */ }Available on crate features
experimental and Animation and Runtime and DOM only.Expand description
Animation instance.
Implementations§
Source§impl Animation
impl Animation
pub fn builder() -> AnimationBuilder
Sourcepub fn paused_state(&self) -> bool
pub fn paused_state(&self) -> bool
Animation’s internal paused state.
Sourcepub fn play_state(&self) -> &str
pub fn play_state(&self) -> &str
Animation’s play state.
Sourcepub fn playback_rate(&self) -> f64
pub fn playback_rate(&self) -> f64
Animation’s playback rate.
Sourcepub fn start_time(&self) -> f64
pub fn start_time(&self) -> f64
Animation’s start time.
Sourcepub fn current_time(&self) -> f64
pub fn current_time(&self) -> f64
Animation’s current time.
Sourcepub fn type(&self) -> &AnimationType
pub fn type(&self) -> &AnimationType
Animation type of Animation.
Sourcepub fn source(&self) -> Option<&AnimationEffect>
pub fn source(&self) -> Option<&AnimationEffect>
Animation’s source animation node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Animation
impl<'de> Deserialize<'de> for Animation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
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