Enum calc_common::MetaButton
source · #[repr(u8)]pub enum MetaButton {
Left,
Right,
Up,
Down,
Back,
Enter,
Clear,
Alt,
Menu,
}
Expand description
A button that isn’t a Character (eg Enter
)
Variants§
Trait Implementations§
source§impl Clone for MetaButton
impl Clone for MetaButton
source§fn clone(&self) -> MetaButton
fn clone(&self) -> MetaButton
Returns a copy 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 From<MetaButton> for Button
impl From<MetaButton> for Button
source§fn from(value: MetaButton) -> Self
fn from(value: MetaButton) -> Self
Converts to this type from the input type.
source§impl PartialEq<MetaButton> for MetaButton
impl PartialEq<MetaButton> for MetaButton
source§fn eq(&self, other: &MetaButton) -> bool
fn eq(&self, other: &MetaButton) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MetaButton
impl Eq for MetaButton
impl StructuralEq for MetaButton
impl StructuralPartialEq for MetaButton
Auto Trait Implementations§
impl RefUnwindSafe for MetaButton
impl Send for MetaButton
impl Sync for MetaButton
impl Unpin for MetaButton
impl UnwindSafe for MetaButton
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