pub enum DuplicateKeyStrategy {
KeepFirst,
KeepLast,
Average,
}Expand description
Strategy for handling duplicate keyframe times when cleaning up keys.
Variants§
KeepFirst
Keep the first encountered key (time-stable).
KeepLast
Keep the last encountered key.
Average
Average all keys with the same timestamp (rotation via progressive slerp, position via arithmetic mean).
Trait Implementations§
Source§impl Clone for DuplicateKeyStrategy
impl Clone for DuplicateKeyStrategy
Source§fn clone(&self) -> DuplicateKeyStrategy
fn clone(&self) -> DuplicateKeyStrategy
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 DuplicateKeyStrategy
Source§impl Debug for DuplicateKeyStrategy
impl Debug for DuplicateKeyStrategy
impl Eq for DuplicateKeyStrategy
Source§impl PartialEq for DuplicateKeyStrategy
impl PartialEq for DuplicateKeyStrategy
impl StructuralPartialEq for DuplicateKeyStrategy
Auto Trait Implementations§
impl Freeze for DuplicateKeyStrategy
impl RefUnwindSafe for DuplicateKeyStrategy
impl Send for DuplicateKeyStrategy
impl Sync for DuplicateKeyStrategy
impl Unpin for DuplicateKeyStrategy
impl UnsafeUnpin for DuplicateKeyStrategy
impl UnwindSafe for DuplicateKeyStrategy
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