Enum DigitalInput
pub enum DigitalInput {
Kl15a,
Kl15b,
DigIn1,
DigIn2,
}Variants§
Implementations§
§impl DigitalInput
impl DigitalInput
pub const VARIANTS: &[Self]
pub const VARIANTS: &[Self]
All digital input variants.
Trait Implementations§
§impl Clone for DigitalInput
impl Clone for DigitalInput
§fn clone(&self) -> DigitalInput
fn clone(&self) -> DigitalInput
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 more§impl Debug for DigitalInput
impl Debug for DigitalInput
§impl<'de> Deserialize<'de> for DigitalInput
impl<'de> Deserialize<'de> for DigitalInput
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Enum for DigitalInput
impl Enum for DigitalInput
§fn from_usize(value: usize) -> Self
fn from_usize(value: usize) -> Self
Takes an usize, and returns an element matching
into_usize function.§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns an unique identifier for a value within range of
0..Array::LENGTH.§impl<V> EnumArray<V> for DigitalInput
impl<V> EnumArray<V> for DigitalInput
§impl PartialEq for DigitalInput
impl PartialEq for DigitalInput
§impl Serialize for DigitalInput
impl Serialize for DigitalInput
impl Copy for DigitalInput
impl Eq for DigitalInput
impl StructuralPartialEq for DigitalInput
Auto Trait Implementations§
impl Freeze for DigitalInput
impl RefUnwindSafe for DigitalInput
impl Send for DigitalInput
impl Sync for DigitalInput
impl Unpin for DigitalInput
impl UnwindSafe for DigitalInput
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