#[non_exhaustive]#[repr(u32)]pub enum HardwareRevision {
RevE = 0,
RevE1 = 1,
V1_0 = 2,
V1_1 = 3,
}
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.
Implementations§
Source§impl HardwareRevision
impl HardwareRevision
pub fn from_config() -> Self
Trait Implementations§
Source§impl Clone for HardwareRevision
impl Clone for HardwareRevision
Source§fn clone(&self) -> HardwareRevision
fn clone(&self) -> HardwareRevision
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 Debug for HardwareRevision
impl Debug for HardwareRevision
Source§impl Default for HardwareRevision
impl Default for HardwareRevision
Source§impl From<u32> for HardwareRevision
impl From<u32> for HardwareRevision
Source§impl FromStr for HardwareRevision
impl FromStr for HardwareRevision
Source§impl Ord for HardwareRevision
impl Ord for HardwareRevision
Source§fn cmp(&self, other: &HardwareRevision) -> Ordering
fn cmp(&self, other: &HardwareRevision) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HardwareRevision
impl PartialEq for HardwareRevision
Source§impl PartialOrd for HardwareRevision
impl PartialOrd for HardwareRevision
impl Copy for HardwareRevision
impl Eq for HardwareRevision
impl StructuralPartialEq for HardwareRevision
Auto Trait Implementations§
impl Freeze for HardwareRevision
impl RefUnwindSafe for HardwareRevision
impl Send for HardwareRevision
impl Sync for HardwareRevision
impl Unpin for HardwareRevision
impl UnwindSafe for HardwareRevision
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