#[repr(u8)]pub enum SwitchEnable {
SWITCH_ENABLE_0 = 0,
SWITCH_ENABLE_1 = 1,
}Variants§
Implementations§
Source§impl SwitchEnable
impl SwitchEnable
Trait Implementations§
Source§impl Clone for SwitchEnable
impl Clone for SwitchEnable
Source§fn clone(&self) -> SwitchEnable
fn clone(&self) -> SwitchEnable
Returns a duplicate 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 SwitchEnable
impl Debug for SwitchEnable
Source§impl From<SwitchEnable> for u8
impl From<SwitchEnable> for u8
Source§fn from(val: SwitchEnable) -> u8
fn from(val: SwitchEnable) -> u8
Converts to this type from the input type.
Source§impl From<u8> for SwitchEnable
impl From<u8> for SwitchEnable
Source§fn from(val: u8) -> SwitchEnable
fn from(val: u8) -> SwitchEnable
Converts to this type from the input type.
Source§impl Ord for SwitchEnable
impl Ord for SwitchEnable
Source§fn cmp(&self, other: &SwitchEnable) -> Ordering
fn cmp(&self, other: &SwitchEnable) -> 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 SwitchEnable
impl PartialEq for SwitchEnable
Source§impl PartialOrd for SwitchEnable
impl PartialOrd for SwitchEnable
impl Copy for SwitchEnable
impl Eq for SwitchEnable
impl StructuralPartialEq for SwitchEnable
Auto Trait Implementations§
impl Freeze for SwitchEnable
impl RefUnwindSafe for SwitchEnable
impl Send for SwitchEnable
impl Sync for SwitchEnable
impl Unpin for SwitchEnable
impl UnwindSafe for SwitchEnable
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