pub struct Button(/* private fields */);
Expand description
A button or key on a specific input device.
Implementations§
Source§impl Button
impl Button
Sourcepub fn new(id: u64) -> Button
pub fn new(id: u64) -> Button
Creates a new Button
. Should only be created in the platform
implementation, which also knows how the inner value is going to be
used.
Sourcepub fn inner(self) -> u64
pub fn inner(self) -> u64
Returns the inner value passed into Button::new
. Generally only
relevant to the platform implementation.
Trait Implementations§
impl Copy for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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