Enum bottomless_pit::input::MouseKey
source · #[repr(u8)]pub enum MouseKey {
Left = 0,
Right = 1,
Middle = 2,
Other = 3,
}Expand description
Representation of mouse buttons
Variants§
Trait Implementations§
source§impl From<MouseButton> for MouseKey
impl From<MouseButton> for MouseKey
source§fn from(val: MouseButton) -> Self
fn from(val: MouseButton) -> Self
Converts to this type from the input type.
source§impl PartialEq for MouseKey
impl PartialEq for MouseKey
impl Copy for MouseKey
impl Eq for MouseKey
impl StructuralEq for MouseKey
impl StructuralPartialEq for MouseKey
Auto Trait Implementations§
impl RefUnwindSafe for MouseKey
impl Send for MouseKey
impl Sync for MouseKey
impl Unpin for MouseKey
impl UnwindSafe for MouseKey
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.