#[repr(u32)]pub enum MouseButton {
Primary = 1,
Secondary = 2,
Middle = 3,
}
Variants§
Trait Implementations§
Source§impl CheckedBitPattern for MouseButton
impl CheckedBitPattern for MouseButton
Source§type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for MouseButton
impl Clone for MouseButton
Source§fn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
Returns a duplicate of the value. Read more
1.0.0 · 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 MouseButton
impl Debug for MouseButton
Source§impl From<MouseButton> for u32
impl From<MouseButton> for u32
Source§fn from(enum_value: MouseButton) -> Self
fn from(enum_value: MouseButton) -> Self
Converts to this type from the input type.
Source§impl Hash for MouseButton
impl Hash for MouseButton
Source§impl PartialEq for MouseButton
impl PartialEq for MouseButton
Source§impl TryFrom<u32> for MouseButton
impl TryFrom<u32> for MouseButton
Source§type Error = TryFromPrimitiveError<MouseButton>
type Error = TryFromPrimitiveError<MouseButton>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for MouseButton
impl TryFromPrimitive for MouseButton
impl Copy for MouseButton
impl Eq for MouseButton
impl NoUninit for MouseButton
impl StructuralPartialEq for MouseButton
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