Enum PulsePolarity
pub enum PulsePolarity {
High,
Low,
Both,
}Expand description
Pulse polarity for PulseDuration.
Variants§
High
Only consider “high” pulses (i.e., when the boolean value is true).
The duration will be output on the falling edge.
Low
Only consider “low” pulses (i.e., when the boolean value is false).
The duration will be output on the rising edge.
Both
Consider both “high” and “low” pulses.
The duration will be output every time the boolean value changes.
Trait Implementations§
§impl Clone for PulsePolarity
impl Clone for PulsePolarity
§fn clone(&self) -> PulsePolarity
fn clone(&self) -> PulsePolarity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PulsePolarity
impl Debug for PulsePolarity
§impl Default for PulsePolarity
impl Default for PulsePolarity
§fn default() -> PulsePolarity
fn default() -> PulsePolarity
Returns the “default value” for a type. Read more
impl Copy for PulsePolarity
Auto Trait Implementations§
impl Freeze for PulsePolarity
impl RefUnwindSafe for PulsePolarity
impl Send for PulsePolarity
impl Sync for PulsePolarity
impl Unpin for PulsePolarity
impl UnwindSafe for PulsePolarity
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