pub struct AnimationTrack<T: Animatable> { /* private fields */ }Expand description
Shared animation timeline state for values implementing Animatable.
Implementations§
Source§impl<T: Animatable> AnimationTrack<T>
impl<T: Animatable> AnimationTrack<T>
Sourcepub fn set_target(&mut self, target: T, animation: Option<Animation>)
pub fn set_target(&mut self, target: T, animation: Option<Animation>)
Replace the target value.
If animation metadata is absent, the value is applied immediately.
Trait Implementations§
Source§impl<T: Clone + Animatable> Clone for AnimationTrack<T>
impl<T: Clone + Animatable> Clone for AnimationTrack<T>
Source§fn clone(&self) -> AnimationTrack<T>
fn clone(&self) -> AnimationTrack<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for AnimationTrack<T>
impl<T> RefUnwindSafe for AnimationTrack<T>
impl<T> Send for AnimationTrack<T>
impl<T> Sync for AnimationTrack<T>
impl<T> Unpin for AnimationTrack<T>
impl<T> UnsafeUnpin for AnimationTrack<T>
impl<T> UnwindSafe for AnimationTrack<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