Enum dwm1001::prelude::PinState [−][src]
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
Low
Low pin state
High
High pin state
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PinState
impl UnwindSafe for PinState
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.