Struct rustcn_ui::AnimationData 
source · 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<'de> Deserialize<'de> for AnimationData
 
impl<'de> Deserialize<'de> for AnimationData
source§fn deserialize<D>(
    deserializer: D
) -> Result<AnimationData, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,
 
fn deserialize<D>(
    deserializer: D
) -> Result<AnimationData, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&AnimationData> for SerializedAnimationData
 
impl From<&AnimationData> for SerializedAnimationData
source§fn from(data: &AnimationData) -> SerializedAnimationData
 
fn from(data: &AnimationData) -> SerializedAnimationData
Converts to this type from the input type.
source§impl From<&Event> for AnimationData
 
impl From<&Event> for AnimationData
source§fn from(e: &Event) -> AnimationData
 
fn from(e: &Event) -> AnimationData
Converts to this type from the input type.
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 From<Event> for AnimationData
 
impl From<Event> for AnimationData
source§fn from(e: Event) -> AnimationData
 
fn from(e: Event) -> AnimationData
Converts to this type from the input type.
source§impl PartialEq for AnimationData
 
impl PartialEq for AnimationData
source§fn eq(&self, other: &AnimationData) -> bool
 
fn eq(&self, other: &AnimationData) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for AnimationData
 
impl Serialize for AnimationData
source§fn serialize<S>(
    &self,
    serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
 
fn serialize<S>(
    &self,
    serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl WebEventExt<AnimationEvent> for AnimationData
 
impl WebEventExt<AnimationEvent> for AnimationData
source§fn web_event(&self) -> &AnimationEvent
 
fn web_event(&self) -> &AnimationEvent
Get the event as a web-sys event.
Auto Trait Implementations§
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> 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<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.