Enum tween::CurrentTimeState
source · pub enum CurrentTimeState {
Waiting,
Valid,
Finished,
}
Expand description
This enum indicates a Tweener or FixedTweener’s current state.
It returns Waiting
is the current time is less than 0, Finished
if it’s at the duration of
the Tweener or greater, and valid otherwise.
Variants§
Waiting
Indicates the Tweener’s current time was before 0
Valid
Indicates the Tweener’s current time in after 0
and before the duration
.
Finished
Indicates the Tweener’s current time is after duration
Trait Implementations§
source§impl Clone for CurrentTimeState
impl Clone for CurrentTimeState
source§fn clone(&self) -> CurrentTimeState
fn clone(&self) -> CurrentTimeState
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 CurrentTimeState
impl Debug for CurrentTimeState
source§impl Ord for CurrentTimeState
impl Ord for CurrentTimeState
source§fn cmp(&self, other: &CurrentTimeState) -> Ordering
fn cmp(&self, other: &CurrentTimeState) -> 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 CurrentTimeState
impl PartialEq for CurrentTimeState
source§fn eq(&self, other: &CurrentTimeState) -> bool
fn eq(&self, other: &CurrentTimeState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CurrentTimeState
impl PartialOrd for CurrentTimeState
source§fn partial_cmp(&self, other: &CurrentTimeState) -> Option<Ordering>
fn partial_cmp(&self, other: &CurrentTimeState) -> 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 moreimpl Copy for CurrentTimeState
impl Eq for CurrentTimeState
impl StructuralPartialEq for CurrentTimeState
Auto Trait Implementations§
impl Freeze for CurrentTimeState
impl RefUnwindSafe for CurrentTimeState
impl Send for CurrentTimeState
impl Sync for CurrentTimeState
impl Unpin for CurrentTimeState
impl UnwindSafe for CurrentTimeState
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