Struct tween::BounceInOut
source · pub struct BounceInOut;
Expand description
A bouncy tween, similar to gravity. Go here for a visual demonstration.
Implementations§
source§impl BounceInOut
impl BounceInOut
Trait Implementations§
source§impl Clone for BounceInOut
impl Clone for BounceInOut
source§fn clone(&self) -> BounceInOut
fn clone(&self) -> BounceInOut
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BounceInOut
impl Debug for BounceInOut
source§impl Default for BounceInOut
impl Default for BounceInOut
source§fn default() -> BounceInOut
fn default() -> BounceInOut
Returns the “default value” for a type. Read more
source§impl Ord for BounceInOut
impl Ord for BounceInOut
source§fn cmp(&self, other: &BounceInOut) -> Ordering
fn cmp(&self, other: &BounceInOut) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BounceInOut
impl PartialEq for BounceInOut
source§fn eq(&self, other: &BounceInOut) -> bool
fn eq(&self, other: &BounceInOut) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BounceInOut
impl PartialOrd for BounceInOut
source§fn partial_cmp(&self, other: &BounceInOut) -> Option<Ordering>
fn partial_cmp(&self, other: &BounceInOut) -> Option<Ordering>
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 BounceInOutwhere
Value: TweenValue,
impl<Value> Tween<Value> for BounceInOutwhere
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 BounceInOut
impl Eq for BounceInOut
impl StructuralPartialEq for BounceInOut
Auto Trait Implementations§
impl Freeze for BounceInOut
impl RefUnwindSafe for BounceInOut
impl Send for BounceInOut
impl Sync for BounceInOut
impl Unpin for BounceInOut
impl UnwindSafe for BounceInOut
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