pub struct TimelineKeyframe {
pub time: u64,
pub value: Value,
pub easing: EasingType,
pub bezier: Option<[f64; 4]>,
}Expand description
A keyframe in a timeline
Fields§
§time: u64Time offset in microseconds from timeline start
value: ValueValue at this keyframe
easing: EasingTypeEasing function to next keyframe
bezier: Option<[f64; 4]>Optional cubic bezier control points [x1, y1, x2, y2] for CubicBezier easing
Trait Implementations§
Source§impl Clone for TimelineKeyframe
impl Clone for TimelineKeyframe
Source§fn clone(&self) -> TimelineKeyframe
fn clone(&self) -> TimelineKeyframe
Returns a duplicate of the value. Read more
1.0.0 · 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 TimelineKeyframe
impl Debug for TimelineKeyframe
Source§impl<'de> Deserialize<'de> for TimelineKeyframe
impl<'de> Deserialize<'de> for TimelineKeyframe
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimelineKeyframe, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimelineKeyframe, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimelineKeyframe
impl PartialEq for TimelineKeyframe
Source§impl Serialize for TimelineKeyframe
impl Serialize for TimelineKeyframe
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
impl StructuralPartialEq for TimelineKeyframe
Auto Trait Implementations§
impl Freeze for TimelineKeyframe
impl RefUnwindSafe for TimelineKeyframe
impl Send for TimelineKeyframe
impl Sync for TimelineKeyframe
impl Unpin for TimelineKeyframe
impl UnsafeUnpin for TimelineKeyframe
impl UnwindSafe for TimelineKeyframe
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