pub enum PolarityMode {
ActiveHigh,
ActiveLow,
}Expand description
Runtime polarity mode, for use with FlexLed / FlexPwmLed.
Unlike the compile-time ActiveHigh / ActiveLow markers, this enum is
suitable when the polarity is determined at runtime (e.g. from configuration).
Variants§
Trait Implementations§
Source§impl Clone for PolarityMode
impl Clone for PolarityMode
Source§fn clone(&self) -> PolarityMode
fn clone(&self) -> PolarityMode
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 PolarityMode
Source§impl Debug for PolarityMode
impl Debug for PolarityMode
impl Eq for PolarityMode
Source§impl PartialEq for PolarityMode
impl PartialEq for PolarityMode
Source§fn eq(&self, other: &PolarityMode) -> bool
fn eq(&self, other: &PolarityMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolarityMode
Auto Trait Implementations§
impl Freeze for PolarityMode
impl RefUnwindSafe for PolarityMode
impl Send for PolarityMode
impl Sync for PolarityMode
impl Unpin for PolarityMode
impl UnsafeUnpin for PolarityMode
impl UnwindSafe for PolarityMode
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