pub struct EasedValue {
pub from: f64,
pub to: f64,
pub duration: f64,
pub elapsed: f64,
pub easing: Easing,
}Expand description
An easing-based animated value.
Fields§
§from: f64Start value
to: f64End value
duration: f64Total duration in seconds
elapsed: f64Elapsed time
easing: EasingEasing function
Implementations§
Source§impl EasedValue
impl EasedValue
Sourcepub fn with_easing(self, easing: Easing) -> Self
pub fn with_easing(self, easing: Easing) -> Self
Set easing function.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether animation is complete.
Trait Implementations§
Source§impl Clone for EasedValue
impl Clone for EasedValue
Auto Trait Implementations§
impl Freeze for EasedValue
impl RefUnwindSafe for EasedValue
impl Send for EasedValue
impl Sync for EasedValue
impl Unpin for EasedValue
impl UnsafeUnpin for EasedValue
impl UnwindSafe for EasedValue
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