Struct dioxus::events::AnimationData
source · pub struct AnimationData { /* private fields */ }
Available on crate feature
html
only.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<&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
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
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> 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.
source§impl<Cfg> TryIntoConfig for Cfg
impl<Cfg> TryIntoConfig for Cfg
source§fn into_config(self) -> Option<Cfg>
fn into_config(self) -> Option<Cfg>
Available on crate feature
launch
only.