#[repr(u8)]pub enum MouseButton {
Left = 1,
Right = 2,
Middle = 4,
LeftRight = 3,
LeftMiddle = 5,
RightMiddle = 6,
All = 7,
Release = 0,
}Variants§
Trait Implementations§
Source§impl From<MouseButton> for u8
impl From<MouseButton> for u8
Source§fn from(button: MouseButton) -> Self
fn from(button: MouseButton) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MouseButton
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
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