Enum ark_api::applet::MouseButton
source · [−]#[repr(u32)]
pub enum MouseButton {
Primary,
Secondary,
Middle,
}
Variants
Primary
Secondary
Middle
Trait Implementations
sourceimpl CheckedBitPattern for MouseButton
impl CheckedBitPattern for MouseButton
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
. Read more
sourcefn is_valid_bit_pattern(bits: &<MouseButton as CheckedBitPattern>::Bits) -> bool
fn is_valid_bit_pattern(bits: &<MouseButton as CheckedBitPattern>::Bits) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl Clone for MouseButton
impl Clone for MouseButton
sourcefn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MouseButton
impl Debug for MouseButton
sourceimpl Hash for MouseButton
impl Hash for MouseButton
sourceimpl PartialEq<MouseButton> for MouseButton
impl PartialEq<MouseButton> for MouseButton
sourcefn eq(&self, other: &MouseButton) -> bool
fn eq(&self, other: &MouseButton) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u32> for MouseButton
impl TryFrom<u32> for MouseButton
type Error = TryFromPrimitiveError<MouseButton>
type Error = TryFromPrimitiveError<MouseButton>
The type returned in the event of a conversion error.
sourcefn try_from(
number: u32
) -> Result<MouseButton, TryFromPrimitiveError<MouseButton>>
fn try_from(
number: u32
) -> Result<MouseButton, TryFromPrimitiveError<MouseButton>>
Performs the conversion.
sourceimpl TryFromPrimitive for MouseButton
impl TryFromPrimitive for MouseButton
type Primitive = u32
const NAME: &'static str = "MouseButton"
fn try_from_primitive(
number: <MouseButton as TryFromPrimitive>::Primitive
) -> Result<MouseButton, TryFromPrimitiveError<MouseButton>>
impl Copy for MouseButton
impl Eq for MouseButton
impl NoUninit for MouseButton
impl StructuralEq for MouseButton
impl StructuralPartialEq for MouseButton
Auto Trait Implementations
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more