pub enum ActiveLevel {
High,
Low,
}Expand description
Electrical level that represents a pressed button.
Variants§
High
The button is pressed when the input pin reads high.
Low
The button is pressed when the input pin reads low.
Trait Implementations§
Source§impl Clone for ActiveLevel
impl Clone for ActiveLevel
Source§fn clone(&self) -> ActiveLevel
fn clone(&self) -> ActiveLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActiveLevel
Source§impl Debug for ActiveLevel
impl Debug for ActiveLevel
impl Eq for ActiveLevel
Source§impl PartialEq for ActiveLevel
impl PartialEq for ActiveLevel
Source§fn eq(&self, other: &ActiveLevel) -> bool
fn eq(&self, other: &ActiveLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActiveLevel
Auto Trait Implementations§
impl Freeze for ActiveLevel
impl RefUnwindSafe for ActiveLevel
impl Send for ActiveLevel
impl Sync for ActiveLevel
impl Unpin for ActiveLevel
impl UnsafeUnpin for ActiveLevel
impl UnwindSafe for ActiveLevel
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