pub struct ButtonsPtr(/* private fields */);Methods from Deref<Target = Buttons>§
pub fn clear(&mut self)
pub fn state(&self) -> u8
pub fn read(&mut self) -> u8
pub fn pressed(&self) -> Button
pub fn set_raw(&mut self, v: u8)
pub fn set(&mut self, v: Button)
pub fn read_pressed(&mut self) -> bool
pub fn shift_register(&self) -> &ShiftRegister
Trait Implementations§
Source§impl Deref for ButtonsPtr
impl Deref for ButtonsPtr
Auto Trait Implementations§
impl Freeze for ButtonsPtr
impl !RefUnwindSafe for ButtonsPtr
impl !Send for ButtonsPtr
impl !Sync for ButtonsPtr
impl Unpin for ButtonsPtr
impl !UnwindSafe for ButtonsPtr
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