pub struct Animation<T: 'static> { /* private fields */ }Expand description
A value moving toward its target, from Cx::animation or
Cx::spring: a Copy
handle to its value and to whether it moves.
Implementations§
Source§impl<T> Animation<T>
impl<T> Animation<T>
Sourcepub fn value(&self) -> ReadSignal<T>
pub fn value(&self) -> ReadSignal<T>
The value, as Cx::animate gives it.
Sourcepub fn running(&self) -> ReadSignal<bool>
pub fn running(&self) -> ReadSignal<bool>
true from the moment a new target starts it, through its delay,
until it settles there. It turns false once per animation, so an
effect on it is the place for what follows; one that takes no time,
a 0 ms target or a sequence of only 0 ms steps, never turns it true,
so read its trigger too if what follows must run after it.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Send for Animation<T>
impl<T> !Sync for Animation<T>
impl<T> Forget for Animation<T>
impl<T> Freeze for Animation<T>where
ReadSignal<T>: Freeze,
impl<T> Move for Animation<T>
impl<T> RefUnwindSafe for Animation<T>where
ReadSignal<T>: RefUnwindSafe,
impl<T> Unpin for Animation<T>where
ReadSignal<T>: Unpin,
impl<T> UnsafeUnpin for Animation<T>where
ReadSignal<T>: UnsafeUnpin,
impl<T> UnwindSafe for Animation<T>where
ReadSignal<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