pub struct Keyframe<A, T, Dur: Duration> {
pub time: Time,
pub duration: Dur,
pub argument: A,
pub value: T,
}Expand description
A single keyframe.
Keyframes are ordered only by their time.
Fields§
§time: TimeThe start-time of this keyframe
duration: DurThe duration this keyframe will interpolate for
argument: AAdditional data for the interpolator
value: TThe value this keyframe will interpolate to
Implementations§
Trait Implementations§
Source§impl<A, T, Dur: Duration> Ord for Keyframe<A, T, Dur>
impl<A, T, Dur: Duration> Ord for Keyframe<A, T, Dur>
Source§impl<A, T, Dur: Duration> PartialOrd for Keyframe<A, T, Dur>
impl<A, T, Dur: Duration> PartialOrd for Keyframe<A, T, Dur>
impl<A, T, Dur: Duration> Eq for Keyframe<A, T, Dur>
Auto Trait Implementations§
impl<A, T, Dur> Freeze for Keyframe<A, T, Dur>
impl<A, T, Dur> RefUnwindSafe for Keyframe<A, T, Dur>
impl<A, T, Dur> Send for Keyframe<A, T, Dur>
impl<A, T, Dur> Sync for Keyframe<A, T, Dur>
impl<A, T, Dur> Unpin for Keyframe<A, T, Dur>
impl<A, T, Dur> UnwindSafe for Keyframe<A, T, Dur>
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> 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