pub struct Buttons { /* private fields */ }Implementations§
Source§impl Buttons
impl 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§
Auto Trait Implementations§
impl Freeze for Buttons
impl !RefUnwindSafe for Buttons
impl Send for Buttons
impl !Sync for Buttons
impl Unpin for Buttons
impl UnwindSafe for Buttons
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