pub struct AnimationData { /* private fields */ }
Implementations§
source§impl AnimationData
impl AnimationData
sourcepub fn new(inner: impl HasAnimationData + 'static) -> AnimationData
pub fn new(inner: impl HasAnimationData + 'static) -> AnimationData
Create a new AnimationData
sourcepub fn animation_name(&self) -> String
pub fn animation_name(&self) -> String
The name of the animation
sourcepub fn pseudo_element(&self) -> String
pub fn pseudo_element(&self) -> String
The name of the pseudo-element the animation runs on
sourcepub fn elapsed_time(&self) -> f32
pub fn elapsed_time(&self) -> f32
The amount of time the animation has been running
Trait Implementations§
source§impl Debug for AnimationData
impl Debug for AnimationData
source§impl From<&PlatformEventData> for AnimationData
impl From<&PlatformEventData> for AnimationData
source§fn from(val: &PlatformEventData) -> AnimationData
fn from(val: &PlatformEventData) -> AnimationData
Converts to this type from the input type.
source§impl<E> From<E> for AnimationDatawhere
E: HasAnimationData,
impl<E> From<E> for AnimationDatawhere
E: HasAnimationData,
source§fn from(e: E) -> AnimationData
fn from(e: E) -> AnimationData
Converts to this type from the input type.
source§impl PartialEq for AnimationData
impl PartialEq for AnimationData
Auto Trait Implementations§
impl Freeze for AnimationData
impl !RefUnwindSafe for AnimationData
impl !Send for AnimationData
impl !Sync for AnimationData
impl Unpin for AnimationData
impl !UnwindSafe for AnimationData
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
source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.