pub struct KeyFrames<T> { /* private fields */ }Expand description
Collection of composition animation key frames
Implementations§
Source§impl<T: Copy + Default + 'static> KeyFrames<T>
impl<T: Copy + Default + 'static> KeyFrames<T>
pub fn new() -> Self
pub fn count(&self) -> usize
pub fn items(&self) -> &[KeyFrame<T>]
pub fn insert_expression_key_frame( &mut self, normalized_progress_key: f32, value: &str, easing_function: Rc<dyn IEasing>, )
pub fn insert( &mut self, normalized_progress_key: f32, value: T, easing_function: Rc<dyn IEasing>, )
pub fn snapshot(&self) -> Vec<ServerKeyFrame<T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for KeyFrames<T>
impl<T> !Send for KeyFrames<T>
impl<T> !Sync for KeyFrames<T>
impl<T> !UnwindSafe for KeyFrames<T>
impl<T> Freeze for KeyFrames<T>
impl<T> Unpin for KeyFrames<T>
impl<T> UnsafeUnpin for KeyFrames<T>
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more