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