pub struct BasicInputs { /* private fields */ }Implementations§
Source§impl BasicInputs
impl BasicInputs
pub fn new(inputs: u8) -> Self
pub fn ok(&self) -> bool
pub fn ok_mut(&mut self) -> &mut bool
pub fn cancel(&self) -> bool
pub fn cancel_mut(&mut self) -> &mut bool
pub fn sub(&self) -> bool
pub fn sub_mut(&mut self) -> &mut bool
pub fn down(&self) -> bool
pub fn down_mut(&mut self) -> &mut bool
pub fn left(&self) -> bool
pub fn left_mut(&mut self) -> &mut bool
pub fn right(&self) -> bool
pub fn right_mut(&mut self) -> &mut bool
pub fn up(&self) -> bool
pub fn up_mut(&mut self) -> &mut bool
Trait Implementations§
Source§impl Clone for BasicInputs
impl Clone for BasicInputs
Source§fn clone(&self) -> BasicInputs
fn clone(&self) -> BasicInputs
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 PartialEq for BasicInputs
impl PartialEq for BasicInputs
impl StructuralPartialEq for BasicInputs
Auto Trait Implementations§
impl Freeze for BasicInputs
impl RefUnwindSafe for BasicInputs
impl Send for BasicInputs
impl Sync for BasicInputs
impl Unpin for BasicInputs
impl UnwindSafe for BasicInputs
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