pub enum KeyframeInterp {
Linear,
Step,
SmoothStep,
}Expand description
How adjacent keyframes are interpolated.
Variants§
Linear
Straight-line interpolation.
Step
Step function — value snaps to the left keyframe until the next one.
SmoothStep
Hermite smoothstep s = t² · (3 − 2t) between each pair of keys.
Trait Implementations§
Source§impl Clone for KeyframeInterp
impl Clone for KeyframeInterp
Source§fn clone(&self) -> KeyframeInterp
fn clone(&self) -> KeyframeInterp
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 moreimpl Copy for KeyframeInterp
Source§impl Debug for KeyframeInterp
impl Debug for KeyframeInterp
Source§impl Default for KeyframeInterp
impl Default for KeyframeInterp
Source§fn default() -> KeyframeInterp
fn default() -> KeyframeInterp
Returns the “default value” for a type. Read more
impl Eq for KeyframeInterp
Source§impl PartialEq for KeyframeInterp
impl PartialEq for KeyframeInterp
Source§fn eq(&self, other: &KeyframeInterp) -> bool
fn eq(&self, other: &KeyframeInterp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyframeInterp
Auto Trait Implementations§
impl Freeze for KeyframeInterp
impl RefUnwindSafe for KeyframeInterp
impl Send for KeyframeInterp
impl Sync for KeyframeInterp
impl Unpin for KeyframeInterp
impl UnsafeUnpin for KeyframeInterp
impl UnwindSafe for KeyframeInterp
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