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