pub struct AnimationDef {
pub duration: String,
pub factor: f64,
pub easing: String,
pub iterations: Value,
pub rest: f64,
pub keyframes: Vec<Keyframe>,
pub band: Option<Band>,
}Expand description
A keyframe set (style.json animations.<name>).
Fields§
§duration: String§factor: f64§easing: String§iterations: ValueA count or "infinite".
rest: f64The reduced-motion keyframe offset (0 = first, 1 = last).
keyframes: Vec<Keyframe>§band: Option<Band>Trait Implementations§
Source§impl Clone for AnimationDef
impl Clone for AnimationDef
Source§impl Debug for AnimationDef
impl Debug for AnimationDef
Source§impl<'de> Deserialize<'de> for AnimationDef
impl<'de> Deserialize<'de> for AnimationDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnimationDef
impl PartialEq for AnimationDef
impl StructuralPartialEq for AnimationDef
Auto Trait Implementations§
impl Freeze for AnimationDef
impl RefUnwindSafe for AnimationDef
impl Send for AnimationDef
impl Sync for AnimationDef
impl Unpin for AnimationDef
impl UnsafeUnpin for AnimationDef
impl UnwindSafe for AnimationDef
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