pub struct AnimatablePair<A, B>(pub A, pub B);Expand description
Pair for composing two animatable values together.
Useful when you need to animate multiple related values as a unit.
Tuple Fields§
§0: A§1: BTrait Implementations§
Source§impl<A: Clone, B: Clone> Clone for AnimatablePair<A, B>
impl<A: Clone, B: Clone> Clone for AnimatablePair<A, B>
Source§fn clone(&self) -> AnimatablePair<A, B>
fn clone(&self) -> AnimatablePair<A, B>
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 moreSource§impl<A: Default, B: Default> Default for AnimatablePair<A, B>
impl<A: Default, B: Default> Default for AnimatablePair<A, B>
Source§fn default() -> AnimatablePair<A, B>
fn default() -> AnimatablePair<A, B>
Returns the “default value” for a type. Read more
impl<A: Eq, B: Eq> Eq for AnimatablePair<A, B>
impl<A: PartialEq, B: PartialEq> StructuralPartialEq for AnimatablePair<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for AnimatablePair<A, B>
impl<A, B> RefUnwindSafe for AnimatablePair<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for AnimatablePair<A, B>
impl<A, B> Sync for AnimatablePair<A, B>
impl<A, B> Unpin for AnimatablePair<A, B>
impl<A, B> UnsafeUnpin for AnimatablePair<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for AnimatablePair<A, B>where
A: UnwindSafe,
B: 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