Enum KeyConflictContext
#[non_exhaustive]pub enum KeyConflictContext {
Universal,
InGame,
Gui,
}Expand description
The screens in which two mappings can conflict.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
§impl KeyConflictContext
impl KeyConflictContext
pub fn conflicts(self, other: KeyConflictContext) -> bool
pub fn conflicts(self, other: KeyConflictContext) -> bool
Whether these screen contexts overlap.
Trait Implementations§
§impl Clone for KeyConflictContext
impl Clone for KeyConflictContext
§fn clone(&self) -> KeyConflictContext
fn clone(&self) -> KeyConflictContext
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 moreimpl Copy for KeyConflictContext
§impl Debug for KeyConflictContext
impl Debug for KeyConflictContext
§impl Default for KeyConflictContext
impl Default for KeyConflictContext
§fn default() -> KeyConflictContext
fn default() -> KeyConflictContext
Returns the “default value” for a type. Read more
impl Eq for KeyConflictContext
§impl PartialEq for KeyConflictContext
impl PartialEq for KeyConflictContext
impl StructuralPartialEq for KeyConflictContext
Auto Trait Implementations§
impl Freeze for KeyConflictContext
impl RefUnwindSafe for KeyConflictContext
impl Send for KeyConflictContext
impl Sync for KeyConflictContext
impl Unpin for KeyConflictContext
impl UnsafeUnpin for KeyConflictContext
impl UnwindSafe for KeyConflictContext
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