pub enum HotbarConfigWarning {
SlotOutOfRange {
slot: u8,
action: String,
},
DuplicateSlot {
slot: u8,
previous_action: String,
replacement_action: String,
},
UnknownAction {
slot: u8,
action: String,
},
}Expand description
Non-fatal hotbar config issue. Invalid slots are skipped; duplicate slots use the last binding; unknown actions are kept for UI feedback.
Variants§
Trait Implementations§
Source§impl Clone for HotbarConfigWarning
impl Clone for HotbarConfigWarning
Source§fn clone(&self) -> HotbarConfigWarning
fn clone(&self) -> HotbarConfigWarning
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 HotbarConfigWarning
impl Debug for HotbarConfigWarning
Source§impl Display for HotbarConfigWarning
impl Display for HotbarConfigWarning
impl Eq for HotbarConfigWarning
Source§impl PartialEq for HotbarConfigWarning
impl PartialEq for HotbarConfigWarning
Source§fn eq(&self, other: &HotbarConfigWarning) -> bool
fn eq(&self, other: &HotbarConfigWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HotbarConfigWarning
Auto Trait Implementations§
impl Freeze for HotbarConfigWarning
impl RefUnwindSafe for HotbarConfigWarning
impl Send for HotbarConfigWarning
impl Sync for HotbarConfigWarning
impl Unpin for HotbarConfigWarning
impl UnsafeUnpin for HotbarConfigWarning
impl UnwindSafe for HotbarConfigWarning
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.