#[non_exhaustive]pub enum Interp {
Constant,
Smooth,
Linear,
Other(String),
}Expand description
How a key moves to the next one (FCurve/Interp).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Constant
Constant: hold until the next key.
Smooth
Default: CSP’s smooth interpolation (cubic Hermite through the slopes).
Linear
Linear: CSP’s 等速補間.
Other(String)
Any other name; evaluated as linear and reported.
Implementations§
Trait Implementations§
impl Eq for Interp
impl StructuralPartialEq for Interp
Auto Trait Implementations§
impl Freeze for Interp
impl RefUnwindSafe for Interp
impl Send for Interp
impl Sync for Interp
impl Unpin for Interp
impl UnsafeUnpin for Interp
impl UnwindSafe for Interp
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.