pub struct JoypadButtonSet(/* private fields */);Implementations§
Source§impl JoypadButtonSet
impl JoypadButtonSet
pub const fn from_raw_bits(bits: u16) -> Self
pub const fn raw_bits(self) -> u16
pub const fn contains(self, button: JoypadButton) -> bool
Trait Implementations§
Source§impl Clone for JoypadButtonSet
impl Clone for JoypadButtonSet
Source§fn clone(&self) -> JoypadButtonSet
fn clone(&self) -> JoypadButtonSet
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 JoypadButtonSet
impl Debug for JoypadButtonSet
Source§impl Default for JoypadButtonSet
impl Default for JoypadButtonSet
Source§fn default() -> JoypadButtonSet
fn default() -> JoypadButtonSet
Returns the “default value” for a type. Read more
Source§impl Hash for JoypadButtonSet
impl Hash for JoypadButtonSet
Source§impl PartialEq for JoypadButtonSet
impl PartialEq for JoypadButtonSet
Source§fn eq(&self, other: &JoypadButtonSet) -> bool
fn eq(&self, other: &JoypadButtonSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for JoypadButtonSet
impl Eq for JoypadButtonSet
impl StructuralPartialEq for JoypadButtonSet
Auto Trait Implementations§
impl Freeze for JoypadButtonSet
impl RefUnwindSafe for JoypadButtonSet
impl Send for JoypadButtonSet
impl Sync for JoypadButtonSet
impl Unpin for JoypadButtonSet
impl UnsafeUnpin for JoypadButtonSet
impl UnwindSafe for JoypadButtonSet
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