pub struct Animation<'a> { /* private fields */ }Expand description
Animation instance.
Implementations§
Source§impl<'a> Animation<'a>
impl<'a> Animation<'a>
pub fn builder( id: impl Into<Cow<'a, str>>, name: impl Into<Cow<'a, str>>, pausedState: bool, playState: impl Into<Cow<'a, str>>, playbackRate: f64, startTime: f64, currentTime: f64, type_: impl Into<Cow<'a, str>>, ) -> AnimationBuilder<'a>
pub fn id(&self) -> &str
pub fn name(&self) -> &str
pub fn pausedState(&self) -> bool
pub fn playState(&self) -> &str
pub fn playbackRate(&self) -> f64
pub fn startTime(&self) -> f64
pub fn currentTime(&self) -> f64
pub fn type_(&self) -> &str
pub fn source(&self) -> Option<&AnimationEffect<'a>>
pub fn cssId(&self) -> Option<&str>
pub fn viewOrScrollTimeline(&self) -> Option<&ViewOrScrollTimeline>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Animation<'a>
impl<'de, 'a> Deserialize<'de> for Animation<'a>
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<'a> Freeze for Animation<'a>
impl<'a> RefUnwindSafe for Animation<'a>
impl<'a> Send for Animation<'a>
impl<'a> Sync for Animation<'a>
impl<'a> Unpin for Animation<'a>
impl<'a> UnsafeUnpin for Animation<'a>
impl<'a> UnwindSafe for Animation<'a>
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