pub enum Extrapolation {
Hold,
Linear,
Repeat,
RepeatOffset,
PingPong,
}Expand description
What a keyframed value does before its first keyframe or after its last.
With one keyframe every choice holds its value.
Variants§
Hold
Keeps the nearest keyframe’s value.
Linear
Continues at the slope the curve has at that end. Not for values that only hold.
Repeat
Repeats the keyed range. After the last keyframe the range is an exact period: the last keyframe’s own time already shows the first keyframe’s value.
RepeatOffset
Repeats the keyed range, each pass starting where the last ended. Numbers and vectors only.
PingPong
Repeats the keyed range forward and backward in turn.
Implementations§
Trait Implementations§
Source§impl Clone for Extrapolation
impl Clone for Extrapolation
impl Copy for Extrapolation
Source§impl Debug for Extrapolation
impl Debug for Extrapolation
Source§impl Default for Extrapolation
impl Default for Extrapolation
Source§impl<'de> Deserialize<'de> for Extrapolation
impl<'de> Deserialize<'de> for Extrapolation
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
impl Eq for Extrapolation
Source§impl PartialEq for Extrapolation
impl PartialEq for Extrapolation
Source§impl Serialize for Extrapolation
impl Serialize for Extrapolation
impl StructuralPartialEq for Extrapolation
Auto Trait Implementations§
impl Forget for Extrapolation
impl Freeze for Extrapolation
impl Move for Extrapolation
impl RefUnwindSafe for Extrapolation
impl Send for Extrapolation
impl Sync for Extrapolation
impl Unpin for Extrapolation
impl UnsafeUnpin for Extrapolation
impl UnwindSafe for Extrapolation
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