pub struct ScanKey { /* private fields */ }Implementations§
Source§impl ScanKey
impl ScanKey
pub fn new(row: u8, col: u8, is_down: bool) -> ScanKey
pub fn none() -> ScanKey
pub fn is_none(&self) -> bool
pub fn row(&self) -> usize
pub fn column(&self) -> usize
pub fn is_down(&self) -> bool
pub fn is_same_key(&self, other: ScanKey) -> bool
pub fn same_key(&self, other: ScanKey) -> bool
pub fn as_memo(&self) -> u16
pub fn from_memo(memo: u16) -> ScanKey
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanKey
impl RefUnwindSafe for ScanKey
impl Send for ScanKey
impl Sync for ScanKey
impl Unpin for ScanKey
impl UnwindSafe for ScanKey
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