pub struct AnimationSpec {
pub keyframes: Vec<AnimationKeyframe>,
pub duration_ms: u64,
pub fill_mode: FillMode,
pub iteration_count: IterationCount,
}Expand description
A multi-keyframe animation specification.
Fields§
§keyframes: Vec<AnimationKeyframe>Ordered keyframes (should be sorted by offset).
duration_ms: u64Total single-iteration duration in milliseconds.
fill_mode: FillModeFill behaviour before and after the animation.
iteration_count: IterationCountNumber of times the animation plays.
Trait Implementations§
Source§impl Clone for AnimationSpec
impl Clone for AnimationSpec
Source§fn clone(&self) -> AnimationSpec
fn clone(&self) -> AnimationSpec
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 AnimationSpec
impl Debug for AnimationSpec
Source§impl PartialEq for AnimationSpec
impl PartialEq for AnimationSpec
Source§fn eq(&self, other: &AnimationSpec) -> bool
fn eq(&self, other: &AnimationSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnimationSpec
Auto Trait Implementations§
impl Freeze for AnimationSpec
impl RefUnwindSafe for AnimationSpec
impl Send for AnimationSpec
impl Sync for AnimationSpec
impl Unpin for AnimationSpec
impl UnsafeUnpin for AnimationSpec
impl UnwindSafe for AnimationSpec
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