#[repr(u16)]pub enum SimpleButton {
Show 16 variants
Down = 1,
Right = 2,
Left = 4,
Up = 8,
SL = 16,
SR = 32,
Unknown1 = 64,
Unknown2 = 128,
Minus = 256,
Plus = 512,
LeftStick = 1_024,
RightStick = 2_048,
Home = 4_096,
Capture = 8_192,
L_OR_R = 16_384,
ZL_OR_ZR = 32_768,
}Variants§
Down = 1
Right = 2
Left = 4
Up = 8
SL = 16
SR = 32
Unknown1 = 64
Unknown2 = 128
Minus = 256
Plus = 512
LeftStick = 1_024
RightStick = 2_048
Home = 4_096
Capture = 8_192
L_OR_R = 16_384
ZL_OR_ZR = 32_768
Trait Implementations§
Source§impl BitAnd for SimpleButton
impl BitAnd for SimpleButton
Source§impl BitFlag for SimpleButton
impl BitFlag for SimpleButton
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for SimpleButton
impl BitOr for SimpleButton
Source§impl BitXor for SimpleButton
impl BitXor for SimpleButton
Source§impl Clone for SimpleButton
impl Clone for SimpleButton
Source§fn clone(&self) -> SimpleButton
fn clone(&self) -> SimpleButton
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SimpleButton
impl Debug for SimpleButton
Source§impl Not for SimpleButton
impl Not for SimpleButton
Source§impl RawBitFlags for SimpleButton
impl RawBitFlags for SimpleButton
impl Copy for SimpleButton
Auto Trait Implementations§
impl Freeze for SimpleButton
impl RefUnwindSafe for SimpleButton
impl Send for SimpleButton
impl Sync for SimpleButton
impl Unpin for SimpleButton
impl UnsafeUnpin for SimpleButton
impl UnwindSafe for SimpleButton
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.