pub struct State { /* private fields */ }
Expand description
The state of an active action
for a given user.
Implementations§
Source§impl State
impl State
Returns true when a button binding
is pressed,
and this function is called in the same update frame as the input event which pressed the button.
Returns true when a button binding
is not pressed,
and this function is called in the same update frame as the input event which released the button.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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