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
impl Copy for PinState
impl Eq for PinState
impl StructuralEq for PinState
impl StructuralPartialEq for PinState
Auto Trait Implementations
impl RefUnwindSafe for PinState
impl Send for PinState
impl Sync for PinState
impl Unpin for PinState
impl UnwindSafe for PinState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more