Struct joycon_sys::spi::ControllerColor
source · #[repr(packed(1))]pub struct ControllerColor {
pub body: Color,
pub buttons: Color,
pub left_grip: Color,
pub right_grip: Color,
}
Fields§
§body: Color
§left_grip: Color
§right_grip: Color
Trait Implementations§
source§impl Clone for ControllerColor
impl Clone for ControllerColor
source§fn clone(&self) -> ControllerColor
fn clone(&self) -> ControllerColor
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 ControllerColor
impl Debug for ControllerColor
source§impl Default for ControllerColor
impl Default for ControllerColor
source§fn default() -> ControllerColor
fn default() -> ControllerColor
Returns the “default value” for a type. Read more
source§impl From<ControllerColor> for SPIWriteRequest
impl From<ControllerColor> for SPIWriteRequest
source§fn from(color: ControllerColor) -> SPIWriteRequest
fn from(color: ControllerColor) -> SPIWriteRequest
Converts to this type from the input type.
source§impl TryFrom<SPIReadResult> for ControllerColor
impl TryFrom<SPIReadResult> for ControllerColor
§type Error = WrongRangeError
type Error = WrongRangeError
The type returned in the event of a conversion error.
impl Copy for ControllerColor
Auto Trait Implementations§
impl Freeze for ControllerColor
impl RefUnwindSafe for ControllerColor
impl Send for ControllerColor
impl Sync for ControllerColor
impl Unpin for ControllerColor
impl UnwindSafe for ControllerColor
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