pub struct Track<T = AnimationValue> {
pub binding: AnimationBinding,
pub keyframes: Vec<Keyframe<T>>,
pub enabled: bool,
}Fields§
§binding: AnimationBinding§keyframes: Vec<Keyframe<T>>§enabled: boolImplementations§
Source§impl<T> Track<T>
impl<T> Track<T>
pub fn new(binding: AnimationBinding) -> Track<T>
pub fn with_keyframes( self, keyframes: impl IntoIterator<Item = Keyframe<T>>, ) -> Track<T>
pub fn push_keyframe(&mut self, keyframe: Keyframe<T>)
pub fn with_enabled(self, enabled: bool) -> Track<T>
Trait Implementations§
impl<T> StructuralPartialEq for Track<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Forget for Track<T>
impl<T> Freeze for Track<T>
impl<T> Move for Track<T>
impl<T> RefUnwindSafe for Track<T>
impl<T> Send for Track<T>
impl<T> Sync for Track<T>
impl<T> Unpin for Track<T>
impl<T> UnsafeUnpin for Track<T>
impl<T> UnwindSafe for Track<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