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