Struct joycon_sys::mcu::ir::Leds
source · #[repr(transparent)]pub struct Leds(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Leds
impl Leds
pub fn flashlight(&self) -> bool
pub fn set_flashlight(&mut self, value: bool)
pub fn disable_far_narrow12(&self) -> bool
pub fn set_disable_far_narrow12(&mut self, value: bool)
pub fn disable_near_wide34(&self) -> bool
pub fn set_disable_near_wide34(&mut self, value: bool)
pub fn strobe(&self) -> bool
pub fn set_strobe(&mut self, value: bool)
Trait Implementations§
impl Copy for Leds
Auto Trait Implementations§
impl Freeze for Leds
impl RefUnwindSafe for Leds
impl Send for Leds
impl Sync for Leds
impl Unpin for Leds
impl UnwindSafe for Leds
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