pub struct Delay<T>where
T: Float,{
pub from_value: T,
pub to_value: T,
pub duration: f32,
}Expand description
Instantaneous movement after a delay.
Fields§
§from_value: TStart value of the animation.
to_value: TTarget value of the animation.
duration: f32The amount of time to wait before movement.
Trait Implementations§
Source§impl<T> Curve for Delay<T>where
T: Float,
impl<T> Curve for Delay<T>where
T: Float,
Source§fn approximate(&self, time: f32) -> Approximation<T>
fn approximate(&self, time: f32) -> Approximation<T>
This should return a single approximation for the given time.
impl<T> Copy for Delay<T>
Auto Trait Implementations§
impl<T> Freeze for Delay<T>where
T: Freeze,
impl<T> RefUnwindSafe for Delay<T>where
T: RefUnwindSafe,
impl<T> Send for Delay<T>where
T: Send,
impl<T> Sync for Delay<T>where
T: Sync,
impl<T> Unpin for Delay<T>where
T: Unpin,
impl<T> UnwindSafe for Delay<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