#[non_exhaustive]pub enum Digit {
Zero = 0,
One = 1,
Two = 2,
Three = 3,
Four = 4,
Five = 5,
Six = 6,
Seven = 7,
Eight = 8,
Nine = 9,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Ord for Digit
impl Ord for Digit
Source§impl PartialOrd for Digit
impl PartialOrd for Digit
Source§impl Termination for Digit
impl Termination for Digit
impl Eq for Digit
impl StructuralPartialEq for Digit
Auto Trait Implementations§
impl Freeze for Digit
impl RefUnwindSafe for Digit
impl Send for Digit
impl Sync for Digit
impl Unpin for Digit
impl UnwindSafe for Digit
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