Struct tween::ElasticOut
source · pub struct ElasticOut;
Expand description
An elastic tween out. Go here for a visual demonstration.
Implementations§
source§impl ElasticOut
impl ElasticOut
Trait Implementations§
source§impl Clone for ElasticOut
impl Clone for ElasticOut
source§fn clone(&self) -> ElasticOut
fn clone(&self) -> ElasticOut
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 ElasticOut
impl Debug for ElasticOut
source§impl Default for ElasticOut
impl Default for ElasticOut
source§fn default() -> ElasticOut
fn default() -> ElasticOut
Returns the “default value” for a type. Read more
source§impl Ord for ElasticOut
impl Ord for ElasticOut
source§fn cmp(&self, other: &ElasticOut) -> Ordering
fn cmp(&self, other: &ElasticOut) -> 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 ElasticOut
impl PartialEq for ElasticOut
source§fn eq(&self, other: &ElasticOut) -> bool
fn eq(&self, other: &ElasticOut) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ElasticOut
impl PartialOrd for ElasticOut
source§fn partial_cmp(&self, other: &ElasticOut) -> Option<Ordering>
fn partial_cmp(&self, other: &ElasticOut) -> 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 ElasticOutwhere
Value: TweenValue,
impl<Value> Tween<Value> for ElasticOutwhere
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 ElasticOut
impl Eq for ElasticOut
impl StructuralPartialEq for ElasticOut
Auto Trait Implementations§
impl Freeze for ElasticOut
impl RefUnwindSafe for ElasticOut
impl Send for ElasticOut
impl Sync for ElasticOut
impl Unpin for ElasticOut
impl UnwindSafe for ElasticOut
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