pub struct KeypadButtonDef {
pub action: KeypadAction,
pub id: String,
pub row: usize,
pub col: usize,
}Expand description
A single keypad button definition
Fields§
§action: KeypadActionThe action this button performs
id: StringThe DOM element ID for this button
row: usizeGrid row (0-indexed)
col: usizeGrid column (0-indexed)
Implementations§
Source§impl KeypadButtonDef
impl KeypadButtonDef
Sourcepub fn new(action: KeypadAction, row: usize, col: usize) -> Self
pub fn new(action: KeypadAction, row: usize, col: usize) -> Self
Creates a new button definition
Trait Implementations§
Source§impl Clone for KeypadButtonDef
impl Clone for KeypadButtonDef
Source§fn clone(&self) -> KeypadButtonDef
fn clone(&self) -> KeypadButtonDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeypadButtonDef
impl Debug for KeypadButtonDef
impl Eq for KeypadButtonDef
Source§impl PartialEq for KeypadButtonDef
impl PartialEq for KeypadButtonDef
Source§fn eq(&self, other: &KeypadButtonDef) -> bool
fn eq(&self, other: &KeypadButtonDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeypadButtonDef
Auto Trait Implementations§
impl Freeze for KeypadButtonDef
impl RefUnwindSafe for KeypadButtonDef
impl Send for KeypadButtonDef
impl Sync for KeypadButtonDef
impl Unpin for KeypadButtonDef
impl UnsafeUnpin for KeypadButtonDef
impl UnwindSafe for KeypadButtonDef
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