pub struct BounceOut;
Expand description
A bouncy tween, similar to gravity. Go here for a visual demonstration.
Implementations§
Trait Implementations§
source§impl Ord for BounceOut
impl Ord for BounceOut
source§impl PartialEq for BounceOut
impl PartialEq for BounceOut
source§impl PartialOrd for BounceOut
impl PartialOrd for BounceOut
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<Value> Tween<Value> for BounceOutwhere
Value: TweenValue,
impl<Value> Tween<Value> for BounceOutwhere
Value: TweenValue,
source§fn tween(&mut self, value_delta: Value, percent_time: f32) -> Value
fn tween(&mut self, value_delta: Value, percent_time: f32) -> Value
Returns a new value based on the value_delta and the percent. Read more
source§fn is_finite(&self) -> bool
fn is_finite(&self) -> bool
All Tweens in this library use this default method, except Looper and Oscillator, which
which are both unbounded (because they never stop returning values), and Extrapolator,
which simply unbounds tweens. Read more
impl Copy for BounceOut
impl Eq for BounceOut
impl StructuralPartialEq for BounceOut
Auto Trait Implementations§
impl Freeze for BounceOut
impl RefUnwindSafe for BounceOut
impl Send for BounceOut
impl Sync for BounceOut
impl Unpin for BounceOut
impl UnwindSafe for BounceOut
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