pub enum Bindable {
Forward,
Backward,
Left,
Right,
Sprint,
Jump,
Interact,
}Expand description
A rebindable gameplay action. The four movement directions, sprint, jump, and interact. Pause (Escape) is deliberately not here: it carries cursor-release / menu semantics that are fixed per-backend.
Variants§
Forward
Move forward.
Backward
Move backward.
Left
Strafe left.
Right
Strafe right.
Sprint
Hold to move faster.
Jump
Jump.
Interact
Interact with the entity under the cursor.
Implementations§
Trait Implementations§
impl Copy for Bindable
impl Eq for Bindable
impl StructuralPartialEq for Bindable
Auto Trait Implementations§
impl Freeze for Bindable
impl RefUnwindSafe for Bindable
impl Send for Bindable
impl Sync for Bindable
impl Unpin for Bindable
impl UnsafeUnpin for Bindable
impl UnwindSafe for Bindable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.