pub struct KeyframeSegment {
pub duration: f32,
pub easing: Easing,
pub start_progress: f32,
pub end_progress: f32,
}Expand description
A single segment within a keyframe animation.
Each segment spans a duration in seconds and maps a range of
overall animation progress (start_progress..end_progress)
through its own easing curve.
Fields§
§duration: f32How long this segment lasts, in seconds.
easing: EasingThe bezier easing curve applied within this segment.
start_progress: f32The animation progress value at the start of this segment (0.0–1.0).
end_progress: f32The animation progress value at the end of this segment (0.0–1.0).
Trait Implementations§
Source§impl Clone for KeyframeSegment
impl Clone for KeyframeSegment
Source§fn clone(&self) -> KeyframeSegment
fn clone(&self) -> KeyframeSegment
Returns a copy 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 KeyframeSegment
impl Debug for KeyframeSegment
impl Copy for KeyframeSegment
Auto Trait Implementations§
impl Freeze for KeyframeSegment
impl RefUnwindSafe for KeyframeSegment
impl Send for KeyframeSegment
impl Sync for KeyframeSegment
impl Unpin for KeyframeSegment
impl UnwindSafe for KeyframeSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more