pub enum ButtonAction {
Digit(u8),
Decimal,
Operator(char),
Equals,
Clear,
OpenParen,
CloseParen,
}Expand description
Actions that keypad buttons can perform
Variants§
Digit(u8)
Insert a digit (0-9)
Decimal
Insert a decimal point
Operator(char)
Insert an operator
Equals
Evaluate the expression
Clear
Clear the input
OpenParen
Open parenthesis
CloseParen
Close parenthesis
Trait Implementations§
Source§impl Clone for ButtonAction
impl Clone for ButtonAction
Source§fn clone(&self) -> ButtonAction
fn clone(&self) -> ButtonAction
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 moreimpl Copy for ButtonAction
Source§impl Debug for ButtonAction
impl Debug for ButtonAction
impl Eq for ButtonAction
Source§impl PartialEq for ButtonAction
impl PartialEq for ButtonAction
Source§fn eq(&self, other: &ButtonAction) -> bool
fn eq(&self, other: &ButtonAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ButtonAction
Auto Trait Implementations§
impl Freeze for ButtonAction
impl RefUnwindSafe for ButtonAction
impl Send for ButtonAction
impl Sync for ButtonAction
impl Unpin for ButtonAction
impl UnsafeUnpin for ButtonAction
impl UnwindSafe for ButtonAction
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