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 duplicate 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§impl PartialOrd for CurrentTimeState
impl PartialOrd for CurrentTimeState
impl 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 UnsafeUnpin 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