Struct timeline_rs::Track
source · pub struct Track<T>where
T: Copy + DeserializeOwned,{
pub keyframes: Vec<Keyframe<T>>,
}Fields§
§keyframes: Vec<Keyframe<T>>Trait Implementations§
source§impl TimelineTrackImpl<(f32, f32)> for Track<(f32, f32)>
impl TimelineTrackImpl<(f32, f32)> for Track<(f32, f32)>
fn get_easing_value_wrap( &self, time: f32, start_value: (f32, f32), next_value: (f32, f32), duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> (f32, f32)
fn get_keyframes(&self) -> &Vec<Keyframe<(f32, f32)>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<(f32, f32)>>
source§impl TimelineTrackImpl<(f32, f32, f32)> for Track<(f32, f32, f32)>
impl TimelineTrackImpl<(f32, f32, f32)> for Track<(f32, f32, f32)>
fn get_easing_value_wrap( &self, time: f32, start_value: (f32, f32, f32), next_value: (f32, f32, f32), duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> (f32, f32, f32)
fn get_keyframes(&self) -> &Vec<Keyframe<(f32, f32, f32)>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<(f32, f32, f32)>>
source§impl TimelineTrackImpl<(f32, f32, f32, f32)> for Track<(f32, f32, f32, f32)>
impl TimelineTrackImpl<(f32, f32, f32, f32)> for Track<(f32, f32, f32, f32)>
fn get_easing_value_wrap( &self, time: f32, start_value: (f32, f32, f32, f32), next_value: (f32, f32, f32, f32), duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> (f32, f32, f32, f32)
fn get_keyframes(&self) -> &Vec<Keyframe<(f32, f32, f32, f32)>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<(f32, f32, f32, f32)>>
source§impl TimelineTrackImpl<bool> for Track<bool>
impl TimelineTrackImpl<bool> for Track<bool>
fn get_easing_value_wrap( &self, time: f32, start_value: bool, next_value: bool, duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> bool
fn get_keyframes(&self) -> &Vec<Keyframe<bool>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<bool>>
source§impl TimelineTrackImpl<f32> for Track<f32>
impl TimelineTrackImpl<f32> for Track<f32>
fn get_easing_value_wrap( &self, time: f32, start_value: f32, next_value: f32, duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> f32
fn get_keyframes(&self) -> &Vec<Keyframe<f32>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<f32>>
source§impl TimelineTrackImpl<f64> for Track<f64>
impl TimelineTrackImpl<f64> for Track<f64>
fn get_easing_value_wrap( &self, time: f32, start_value: f64, next_value: f64, duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> f64
fn get_keyframes(&self) -> &Vec<Keyframe<f64>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<f64>>
source§impl TimelineTrackImpl<i32> for Track<i32>
impl TimelineTrackImpl<i32> for Track<i32>
fn get_easing_value_wrap( &self, time: f32, start_value: i32, next_value: i32, duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> i32
fn get_keyframes(&self) -> &Vec<Keyframe<i32>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<i32>>
source§impl TimelineTrackImpl<i64> for Track<i64>
impl TimelineTrackImpl<i64> for Track<i64>
fn get_easing_value_wrap( &self, time: f32, start_value: i64, next_value: i64, duration: f32, easing_function: EasingFunction, easing_type: EasingType ) -> i64
fn get_keyframes(&self) -> &Vec<Keyframe<i64>>
fn get_keyframes_mut(&mut self) -> &mut Vec<Keyframe<i64>>
Auto Trait Implementations§
impl<T> Freeze for Track<T>
impl<T> RefUnwindSafe for Track<T>where
T: RefUnwindSafe,
impl<T> Send for Track<T>where
T: Send,
impl<T> Sync for Track<T>where
T: Sync,
impl<T> Unpin for Track<T>where
T: Unpin,
impl<T> UnwindSafe for Track<T>where
T: UnwindSafe,
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