pub struct Tween {
pub from: f32,
pub to: f32,
pub duration: f32,
pub elapsed: f32,
pub curve: Easing,
}Expand description
A one-shot tween from from→to over duration seconds along a curve.
Fields§
§from: f32§to: f32§duration: f32§elapsed: f32§curve: EasingImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tween
impl RefUnwindSafe for Tween
impl Send for Tween
impl Sync for Tween
impl Unpin for Tween
impl UnsafeUnpin for Tween
impl UnwindSafe for Tween
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