pub struct AnimationKeyframe {
pub offset: f32,
pub props: HashMap<String, String>,
}Expand description
A single keyframe in an animation.
Fields§
§offset: f32Position within the animation (0.0 = start, 1.0 = end).
props: HashMap<String, String>Property name → value pairs at this keyframe (CSS-like tokens).
Trait Implementations§
Source§impl Clone for AnimationKeyframe
impl Clone for AnimationKeyframe
Source§fn clone(&self) -> AnimationKeyframe
fn clone(&self) -> AnimationKeyframe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimationKeyframe
impl Debug for AnimationKeyframe
Source§impl PartialEq for AnimationKeyframe
impl PartialEq for AnimationKeyframe
Source§fn eq(&self, other: &AnimationKeyframe) -> bool
fn eq(&self, other: &AnimationKeyframe) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnimationKeyframe
Auto Trait Implementations§
impl Freeze for AnimationKeyframe
impl RefUnwindSafe for AnimationKeyframe
impl Send for AnimationKeyframe
impl Sync for AnimationKeyframe
impl Unpin for AnimationKeyframe
impl UnsafeUnpin for AnimationKeyframe
impl UnwindSafe for AnimationKeyframe
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