pub enum Time {
Linear(Vec<f32>),
Bezier(Vec<(f32, f32, f32)>),
}Expand description
The Time structure contains key time data in an animation track.
There are two different kinds of this structure; one for every curve kind.
The variants in this enum contain vectors. One vector item represents on key time.
Variants§
Linear(Vec<f32>)
The times are interpolated linearly.
Bezier(Vec<(f32, f32, f32)>)
The times are interpolated on a one-dimensional Bezier curve.
The times in each tuple in the vector are the “value”, “-control” and “+control” values of the Bezier curve respectively.
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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