pub struct TweenSequenceItem<T> {
pub tween: Rc<dyn Animatable<T>>,
pub weight: f64,
}Expand description
A simple holder for one element of a TweenSequence.
Fields§
§tween: Rc<dyn Animatable<T>>Defines the value of the TweenSequence for the interval within the
animation’s duration indicated by weight and this item’s position
in the list of items.
weight: f64An arbitrary value that indicates the relative percentage of a
TweenSequence animation’s duration when tween will be used.
Implementations§
Source§impl<T> TweenSequenceItem<T>
impl<T> TweenSequenceItem<T>
Sourcepub fn new(tween: Rc<dyn Animatable<T>>, weight: f64) -> TweenSequenceItem<T>
pub fn new(tween: Rc<dyn Animatable<T>>, weight: f64) -> TweenSequenceItem<T>
Construct a TweenSequenceItem.
The weight must be greater than 0.0.
Trait Implementations§
Source§impl<T> Clone for TweenSequenceItem<T>where
T: Clone,
impl<T> Clone for TweenSequenceItem<T>where
T: Clone,
Source§fn clone(&self) -> TweenSequenceItem<T>
fn clone(&self) -> TweenSequenceItem<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> !RefUnwindSafe for TweenSequenceItem<T>
impl<T> !Send for TweenSequenceItem<T>
impl<T> !Sync for TweenSequenceItem<T>
impl<T> !UnwindSafe for TweenSequenceItem<T>
impl<T> Forget for TweenSequenceItem<T>
impl<T> Freeze for TweenSequenceItem<T>where
*const RcInner<dyn Animatable<T>> is !null: Freeze,
PhantomData<RcInner<dyn Animatable<T>>>: Freeze,
impl<T> Move for TweenSequenceItem<T>
impl<T> Unpin for TweenSequenceItem<T>
impl<T> UnsafeUnpin for TweenSequenceItem<T>where
*const RcInner<dyn Animatable<T>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Animatable<T>>>: UnsafeUnpin,
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