Struct playdate_rs::system::Peripherals
source · #[repr(transparent)]pub struct Peripherals(pub u32);Tuple Fields§
§0: u32Implementations§
source§impl PDPeripherals
impl PDPeripherals
pub const kNone: PDPeripherals = PDPeripherals(0)
source§impl PDPeripherals
impl PDPeripherals
pub const kAccelerometer: PDPeripherals = PDPeripherals(1)
source§impl PDPeripherals
impl PDPeripherals
pub const kAllPeripherals: PDPeripherals = PDPeripherals(65535)
Trait Implementations§
source§impl BitAnd<PDPeripherals> for PDPeripherals
impl BitAnd<PDPeripherals> for PDPeripherals
§type Output = PDPeripherals
type Output = PDPeripherals
The resulting type after applying the
& operator.source§fn bitand(self, other: PDPeripherals) -> PDPeripherals
fn bitand(self, other: PDPeripherals) -> PDPeripherals
Performs the
& operation. Read moresource§impl BitAndAssign<PDPeripherals> for PDPeripherals
impl BitAndAssign<PDPeripherals> for PDPeripherals
source§fn bitand_assign(&mut self, rhs: PDPeripherals)
fn bitand_assign(&mut self, rhs: PDPeripherals)
Performs the
&= operation. Read moresource§impl BitOr<PDPeripherals> for PDPeripherals
impl BitOr<PDPeripherals> for PDPeripherals
§type Output = PDPeripherals
type Output = PDPeripherals
The resulting type after applying the
| operator.source§fn bitor(self, other: PDPeripherals) -> PDPeripherals
fn bitor(self, other: PDPeripherals) -> PDPeripherals
Performs the
| operation. Read moresource§impl BitOrAssign<PDPeripherals> for PDPeripherals
impl BitOrAssign<PDPeripherals> for PDPeripherals
source§fn bitor_assign(&mut self, rhs: PDPeripherals)
fn bitor_assign(&mut self, rhs: PDPeripherals)
Performs the
|= operation. Read moresource§impl Clone for PDPeripherals
impl Clone for PDPeripherals
source§fn clone(&self) -> PDPeripherals
fn clone(&self) -> PDPeripherals
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 PDPeripherals
impl Debug for PDPeripherals
source§impl Hash for PDPeripherals
impl Hash for PDPeripherals
source§impl PartialEq<PDPeripherals> for PDPeripherals
impl PartialEq<PDPeripherals> for PDPeripherals
source§fn eq(&self, other: &PDPeripherals) -> bool
fn eq(&self, other: &PDPeripherals) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PDPeripherals
impl Eq for PDPeripherals
impl StructuralEq for PDPeripherals
impl StructuralPartialEq for PDPeripherals
Auto Trait Implementations§
impl RefUnwindSafe for PDPeripherals
impl Send for PDPeripherals
impl Sync for PDPeripherals
impl Unpin for PDPeripherals
impl UnwindSafe for PDPeripherals
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