Enum ark_api::applet::MouseButton
source · #[repr(u32)]pub enum MouseButton {
Primary,
Secondary,
Middle,
}Variants§
Trait Implementations§
source§impl 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.source§fn 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.source§impl Clone for MouseButton
impl Clone for MouseButton
source§fn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
Returns a copy 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 Hash for MouseButton
impl Hash for MouseButton
source§impl PartialEq<MouseButton> for MouseButton
impl PartialEq<MouseButton> for MouseButton
source§fn 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 ==.source§impl<'a_, C_> Readable<'a_, C_> for MouseButtonwhere
C_: Context,
impl<'a_, C_> Readable<'a_, C_> for MouseButtonwhere C_: Context,
fn read_from<R_>( _reader_: &mut R_ ) -> Result<MouseButton, <C_ as Context>::Error>where R_: Reader<'a_, C_>,
fn minimum_bytes_needed() -> usize
fn read_from_buffer_with_ctx( context: C, buffer: &'a [u8] ) -> Result<Self, <C as Context>::Error>
fn read_with_length_from_buffer_with_ctx( context: C, buffer: &'a [u8] ) -> (Result<Self, <C as Context>::Error>, usize)
fn read_from_buffer_copying_data_with_ctx( context: C, buffer: &[u8] ) -> Result<Self, <C as Context>::Error>
fn read_with_length_from_buffer_copying_data_with_ctx( context: C, buffer: &[u8] ) -> (Result<Self, <C as Context>::Error>, usize)
fn read_with_length_from_buffer_copying_data_with_ctx_mut( context: &mut C, buffer: &[u8] ) -> (Result<Self, <C as Context>::Error>, usize)
fn read_from_stream_unbuffered_with_ctx<S>( context: C, stream: S ) -> Result<Self, <C as Context>::Error>where S: Read,
fn read_from_stream_buffered_with_ctx<S>( context: C, stream: S ) -> Result<Self, <C as Context>::Error>where S: Read,
fn read_from_file_with_ctx( context: C, path: impl AsRef<Path> ) -> Result<Self, <C as Context>::Error>
source§impl 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.
source§fn try_from(
number: u32
) -> Result<MouseButton, TryFromPrimitiveError<MouseButton>>
fn try_from( number: u32 ) -> Result<MouseButton, TryFromPrimitiveError<MouseButton>>
Performs the conversion.
source§impl 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>>
source§impl<C_> Writable<C_> for MouseButtonwhere
C_: Context,
impl<C_> Writable<C_> for MouseButtonwhere C_: Context,
fn write_to<T_>(&self, _writer_: &mut T_) -> Result<(), <C_ as Context>::Error>where T_: Writer<C_> + ?Sized,
fn write_to_buffer_with_ctx( &self, context: C, buffer: &mut [u8] ) -> Result<(), <C as Context>::Error>
fn write_to_buffer_with_ctx_mut( &self, context: &mut C, buffer: &mut [u8] ) -> Result<(), <C as Context>::Error>
fn write_to_vec_with_ctx( &self, context: C ) -> Result<Vec<u8, Global>, <C as Context>::Error>
fn write_to_vec_with_ctx_mut( &self, context: &mut C ) -> Result<Vec<u8, Global>, <C as Context>::Error>
fn write_to_stream_with_ctx<S>( &self, context: C, stream: S ) -> Result<(), <C as Context>::Error>where S: Write,
fn write_to_file_with_ctx( &self, context: C, path: impl AsRef<Path> ) -> Result<(), <C as Context>::Error>
fn bytes_needed(&self) -> Result<usize, <C as Context>::Error>
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§
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