pub enum CntDirection {
CW,
CCW,
}Expand description
Enum to specify the direction in which a counter counts
This enum is used to turn the positive direction of counting around. By default, it is set to CW for positive counting, but can be set to CCW for positive counting.
Variants§
Trait Implementations§
Source§impl Clone for CntDirection
impl Clone for CntDirection
Source§fn clone(&self) -> CntDirection
fn clone(&self) -> CntDirection
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 moreSource§impl Debug for CntDirection
impl Debug for CntDirection
Source§impl Default for CntDirection
impl Default for CntDirection
Source§fn default() -> CntDirection
fn default() -> CntDirection
Returns the “default value” for a type. Read more
Source§impl From<CntDirection> for u8
impl From<CntDirection> for u8
Source§fn from(val: CntDirection) -> Self
fn from(val: CntDirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CntDirection
impl PartialEq for CntDirection
impl Copy for CntDirection
impl Eq for CntDirection
impl StructuralPartialEq for CntDirection
Auto Trait Implementations§
impl Freeze for CntDirection
impl RefUnwindSafe for CntDirection
impl Send for CntDirection
impl Sync for CntDirection
impl Unpin for CntDirection
impl UnwindSafe for CntDirection
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