Enum embedded_hal::digital::PinState
source · pub enum PinState {
Low,
High,
}
Expand description
Digital output pin state.
Conversion from bool
and logical negation are also implemented
for this type.
let state = PinState::from(false);
assert_eq!(state, PinState::Low);
assert_eq!(!state, PinState::High);
Variants§
Trait Implementations§
source§impl PartialEq for PinState
impl PartialEq for PinState
impl Copy for PinState
impl Eq for PinState
impl StructuralPartialEq for PinState
Auto Trait Implementations§
impl Freeze for PinState
impl RefUnwindSafe for PinState
impl Send for PinState
impl Sync for PinState
impl Unpin for PinState
impl UnwindSafe for PinState
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