#[repr(u8)]
pub enum Cpt {
Show 32 variants Minus15 = 0, Minus14 = 1, Minus13 = 2, Minus12 = 3, Minus11 = 4, Minus10 = 5, Minus9 = 6, Minus8 = 7, Minus7 = 8, Minus6 = 9, Minus5 = 10, Minus4 = 11, Minus3 = 12, Minus2 = 13, Minus1 = 14, Zero = 15, Plus1 = 16, Plus2 = 17, Plus3 = 18, Plus4 = 19, Plus5 = 20, Plus6 = 21, Plus7 = 22, Plus8 = 23, Plus9 = 24, Plus10 = 25, Plus11 = 26, Plus12 = 27, Plus13 = 28, Plus14 = 29, Plus15 = 30, Plus16 = 31,
}
Expand description

Current precision trim

Value on reset: 15

Variants§

§

Minus15 = 0

0: Trim -15%

§

Minus14 = 1

1: Trim -14%

§

Minus13 = 2

2: Trim -13%

§

Minus12 = 3

3: Trim -12%

§

Minus11 = 4

4: Trim -11%

§

Minus10 = 5

5: Trim -10%

§

Minus9 = 6

6: Trim -9%

§

Minus8 = 7

7: Trim -8%

§

Minus7 = 8

8: Trim -7%

§

Minus6 = 9

9: Trim -6%

§

Minus5 = 10

10: Trim -5%

§

Minus4 = 11

11: Trim -4%

§

Minus3 = 12

12: Trim -3%

§

Minus2 = 13

13: Trim -2%

§

Minus1 = 14

14: Trim -1%

§

Zero = 15

15: Trim 0%

§

Plus1 = 16

16: Trim +1%

§

Plus2 = 17

17: Trim +2%

§

Plus3 = 18

18: Trim +3%

§

Plus4 = 19

19: Trim +4%

§

Plus5 = 20

20: Trim +5%

§

Plus6 = 21

21: Trim +6%

§

Plus7 = 22

22: Trim +7%

§

Plus8 = 23

23: Trim +8%

§

Plus9 = 24

24: Trim +9%

§

Plus10 = 25

25: Trim +10%

§

Plus11 = 26

26: Trim +11%

§

Plus12 = 27

27: Trim +12%

§

Plus13 = 28

28: Trim +13%

§

Plus14 = 29

29: Trim +14%

§

Plus15 = 30

30: Trim +15%

§

Plus16 = 31

31: Trim +16%

Trait Implementations§

source§

impl Clone for Cpt

source§

fn clone(&self) -> Cpt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Cpt

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FieldSpec for Cpt

§

type Ux = u8

Raw field type (u8, u16, u32, …).
source§

impl From<Cpt> for u8

source§

fn from(variant: Cpt) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Cpt

source§

fn eq(&self, other: &Cpt) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Cpt

source§

impl Eq for Cpt

source§

impl StructuralPartialEq for Cpt

Auto Trait Implementations§

§

impl Freeze for Cpt

§

impl RefUnwindSafe for Cpt

§

impl Send for Cpt

§

impl Sync for Cpt

§

impl Unpin for Cpt

§

impl UnwindSafe for Cpt

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.