#[repr(u8)]pub enum PioDigimode {
ANALOG = 0,
DIGITAL = 1,
}Variants§
ANALOG = 0
Disable digital mode. Digital input set to 0.
DIGITAL = 1
Enable Digital mode. Digital input is enabled.
Implementations§
Source§impl PioDigimode
impl PioDigimode
Trait Implementations§
Source§impl Clone for PioDigimode
impl Clone for PioDigimode
Source§fn clone(&self) -> PioDigimode
fn clone(&self) -> PioDigimode
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 PioDigimode
impl Debug for PioDigimode
Source§impl From<PioDigimode> for u8
impl From<PioDigimode> for u8
Source§fn from(val: PioDigimode) -> u8
fn from(val: PioDigimode) -> u8
Converts to this type from the input type.
Source§impl From<u8> for PioDigimode
impl From<u8> for PioDigimode
Source§fn from(val: u8) -> PioDigimode
fn from(val: u8) -> PioDigimode
Converts to this type from the input type.
Source§impl Ord for PioDigimode
impl Ord for PioDigimode
Source§fn cmp(&self, other: &PioDigimode) -> Ordering
fn cmp(&self, other: &PioDigimode) -> 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 PioDigimode
impl PartialEq for PioDigimode
Source§impl PartialOrd for PioDigimode
impl PartialOrd for PioDigimode
impl Copy for PioDigimode
impl Eq for PioDigimode
impl StructuralPartialEq for PioDigimode
Auto Trait Implementations§
impl Freeze for PioDigimode
impl RefUnwindSafe for PioDigimode
impl Send for PioDigimode
impl Sync for PioDigimode
impl Unpin for PioDigimode
impl UnwindSafe for PioDigimode
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