pub struct CurrentState<K> {
pub key: K,
pub duration: f32,
pub elapsed: f32,
pub repeat: bool,
}Expand description
A state machine’s current state
Fields§
§key: KThe current state key
duration: f32The current state duration
elapsed: f32The current state elapsed time
repeat: boolWhether the current state repeats
Implementations§
Trait Implementations§
Source§impl<K: Clone> Clone for CurrentState<K>
impl<K: Clone> Clone for CurrentState<K>
Source§fn clone(&self) -> CurrentState<K>
fn clone(&self) -> CurrentState<K>
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<K: Debug> Debug for CurrentState<K>
impl<K: Debug> Debug for CurrentState<K>
Source§impl<K: PartialEq> PartialEq for CurrentState<K>
impl<K: PartialEq> PartialEq for CurrentState<K>
impl<K> StructuralPartialEq for CurrentState<K>
Auto Trait Implementations§
impl<K> Freeze for CurrentState<K>where
K: Freeze,
impl<K> RefUnwindSafe for CurrentState<K>where
K: RefUnwindSafe,
impl<K> Send for CurrentState<K>where
K: Send,
impl<K> Sync for CurrentState<K>where
K: Sync,
impl<K> Unpin for CurrentState<K>where
K: Unpin,
impl<K> UnwindSafe for CurrentState<K>where
K: UnwindSafe,
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