pub struct ValueAnim {
pub current: f32,
/* private fields */
}Expand description
Timeline of an implicitly animated value (Widget::anim_target):
interpolates from → to according to the widget’s curve and duration.
current is the value handed to the paint. A change of target rebases the
timeline from the current value (a clean, continuous restart).
Fields§
§current: f32Current interpolated value (what the paint reads).
Trait Implementations§
impl Copy for ValueAnim
impl StructuralPartialEq for ValueAnim
Auto Trait Implementations§
impl Freeze for ValueAnim
impl RefUnwindSafe for ValueAnim
impl Send for ValueAnim
impl Sync for ValueAnim
impl Unpin for ValueAnim
impl UnsafeUnpin for ValueAnim
impl UnwindSafe for ValueAnim
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