pub struct HotbarBinding {
pub slot: u8,
pub action: String,
pub label: Option<String>,
}Expand description
Validated hotbar binding used by future render/dispatch layers.
Fields§
§slot: u8§action: String§label: Option<String>Trait Implementations§
Source§impl Clone for HotbarBinding
impl Clone for HotbarBinding
Source§fn clone(&self) -> HotbarBinding
fn clone(&self) -> HotbarBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HotbarBinding
impl Debug for HotbarBinding
impl Eq for HotbarBinding
Source§impl PartialEq for HotbarBinding
impl PartialEq for HotbarBinding
Source§fn eq(&self, other: &HotbarBinding) -> bool
fn eq(&self, other: &HotbarBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HotbarBinding
Auto Trait Implementations§
impl Freeze for HotbarBinding
impl RefUnwindSafe for HotbarBinding
impl Send for HotbarBinding
impl Sync for HotbarBinding
impl Unpin for HotbarBinding
impl UnsafeUnpin for HotbarBinding
impl UnwindSafe for HotbarBinding
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§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.