#[repr(C)]pub enum PamojaPinPolarity {
ActiveHigh = 0,
ActiveLow = 1,
}Expand description
Whether a signal is asserted by a high or a low physical level.
Variants§
ActiveHigh = 0
A high level means asserted.
ActiveLow = 1
A low level means asserted, the wiring of most buttons and relay boards.
Trait Implementations§
Source§impl Clone for PamojaPinPolarity
impl Clone for PamojaPinPolarity
Source§fn clone(&self) -> PamojaPinPolarity
fn clone(&self) -> PamojaPinPolarity
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 PamojaPinPolarity
Source§impl Debug for PamojaPinPolarity
impl Debug for PamojaPinPolarity
impl Eq for PamojaPinPolarity
Source§impl From<PamojaPinPolarity> for Polarity
impl From<PamojaPinPolarity> for Polarity
Source§fn from(value: PamojaPinPolarity) -> Self
fn from(value: PamojaPinPolarity) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaPinPolarity
impl PartialEq for PamojaPinPolarity
Source§fn eq(&self, other: &PamojaPinPolarity) -> bool
fn eq(&self, other: &PamojaPinPolarity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaPinPolarity
Auto Trait Implementations§
impl Freeze for PamojaPinPolarity
impl RefUnwindSafe for PamojaPinPolarity
impl Send for PamojaPinPolarity
impl Sync for PamojaPinPolarity
impl Unpin for PamojaPinPolarity
impl UnsafeUnpin for PamojaPinPolarity
impl UnwindSafe for PamojaPinPolarity
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