pub struct Tween { /* private fields */ }Expand description
Interruptible duration-based animation using the Material easing curves.
Implementations§
Source§impl Tween
impl Tween
pub fn at(value: f32) -> Self
pub fn sample( &mut self, time: f64, target: f32, enter: TweenSpec, exit: TweenSpec, reduced: bool, ) -> f32
Sourcepub fn sample_css(
&mut self,
time: f64,
target: f32,
enter: TweenSpec,
exit: TweenSpec,
reduced: bool,
) -> f32
pub fn sample_css( &mut self, time: f64, target: f32, enter: TweenSpec, exit: TweenSpec, reduced: bool, ) -> f32
CSS transition reversal shortening, preserving the current presentation.
pub fn moving(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for Tween
impl Freeze for Tween
impl Move 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