pub enum ComparatorMode {
Period,
Target,
}Expand description
The modes of a comparator.
Variants§
Period
The comparator will generate interrupts periodically.
Target
The comparator will generate an interrupt when the unit reaches the target.
Trait Implementations§
Source§impl Clone for ComparatorMode
impl Clone for ComparatorMode
Source§fn clone(&self) -> ComparatorMode
fn clone(&self) -> ComparatorMode
Returns a copy 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 moreimpl Copy for ComparatorMode
Auto Trait Implementations§
impl Freeze for ComparatorMode
impl RefUnwindSafe for ComparatorMode
impl Send for ComparatorMode
impl Sync for ComparatorMode
impl Unpin for ComparatorMode
impl UnwindSafe for ComparatorMode
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