pub struct DigitalControllerState {
pub l1: bool,
pub l2: bool,
pub r1: bool,
pub r2: bool,
pub up: bool,
pub down: bool,
pub left: bool,
pub right: bool,
pub x: bool,
pub b: bool,
pub y: bool,
pub a: bool,
}
Fields§
§l1: bool
§l2: bool
§r1: bool
§r2: bool
§up: bool
§down: bool
§left: bool
§right: bool
§x: bool
§b: bool
§y: bool
§a: bool
Trait Implementations§
Source§impl Clone for DigitalControllerState
impl Clone for DigitalControllerState
Source§fn clone(&self) -> DigitalControllerState
fn clone(&self) -> DigitalControllerState
Returns a duplicate 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 DigitalControllerState
impl Debug for DigitalControllerState
Source§impl<'de> Deserialize<'de> for DigitalControllerState
impl<'de> Deserialize<'de> for DigitalControllerState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DigitalControllerState
impl PartialEq for DigitalControllerState
Source§impl Serialize for DigitalControllerState
impl Serialize for DigitalControllerState
impl Eq for DigitalControllerState
impl StructuralPartialEq for DigitalControllerState
Auto Trait Implementations§
impl Freeze for DigitalControllerState
impl RefUnwindSafe for DigitalControllerState
impl Send for DigitalControllerState
impl Sync for DigitalControllerState
impl Unpin for DigitalControllerState
impl UnwindSafe for DigitalControllerState
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