pub struct Animated<T> {
pub target: T,
pub spec: AnimationSpec,
}Expand description
A value the Renderer animates to whenever it changes: what animate_float_as_state
and its siblings return. value is the target, because the value in
between is the Renderer’s and is never sent back.
Given to a Modifier (animated_alpha, animated_background, animated_offset). The
first value a node is given is where it starts; every later one is a change, written
as one StartAnimation that the Renderer plays on its own clock, so nothing is composed
again while it plays.
Fields§
§target: T§spec: AnimationSpecImplementations§
Trait Implementations§
impl<T: Copy> Copy for Animated<T>
impl<T: PartialEq> StructuralPartialEq for Animated<T>
Auto Trait Implementations§
impl<T> Freeze for Animated<T>where
T: Freeze,
impl<T> RefUnwindSafe for Animated<T>where
T: RefUnwindSafe,
impl<T> Send for Animated<T>where
T: Send,
impl<T> Sync for Animated<T>where
T: Sync,
impl<T> Unpin for Animated<T>where
T: Unpin,
impl<T> UnsafeUnpin for Animated<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Animated<T>where
T: 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