pub struct AnimationSpec {
pub name: String,
pub duration_ms: f32,
pub timing: TimingFunction,
pub delay_ms: f32,
pub iterations: f32,
pub direction: String,
pub fill: String,
pub play_state: String,
}Expand description
animation ショートハンドの解析結果。
Fields§
§name: String§duration_ms: f32§timing: TimingFunction§delay_ms: f32§iterations: f32繰り返し回数。f32::INFINITY = infinite。
direction: String“normal” | “reverse” | “alternate” | “alternate-reverse”。
fill: String“none” | “forwards” | “backwards” | “both”。
play_state: String“running” | “paused”。以前は animation-play-state が一切パース/適用されず、
paused 指定が常に無視され再生が止められないバグがあった。
Implementations§
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