Skip to main content

BatCommonDesignationEnum

Enum BatCommonDesignationEnum 

Source
#[repr(u8)]
pub enum BatCommonDesignationEnum {
Show 81 variants Unspecified = 0, AAA = 1, AA = 2, C = 3, D = 4, N4V5 = 5, N6V0 = 6, N9V0 = 7, N12AA = 8, AAAA = 9, A = 10, B = 11, F = 12, N = 13, No6 = 14, SubC = 15, A23 = 16, A27 = 17, BA5800 = 18, Duplex = 19, N4SR44 = 20, N523 = 21, N531 = 22, N15V0 = 23, N22V5 = 24, N30V0 = 25, N45V0 = 26, N67V5 = 27, J = 28, CR123A = 29, CR2 = 30, N2CR5 = 31, CRP2 = 32, CRV3 = 33, SR41 = 34, SR43 = 35, SR44 = 36, SR45 = 37, SR48 = 38, SR54 = 39, SR55 = 40, SR57 = 41, SR58 = 42, SR59 = 43, SR60 = 44, SR63 = 45, SR64 = 46, SR65 = 47, SR66 = 48, SR67 = 49, SR68 = 50, SR69 = 51, SR516 = 52, SR731 = 53, SR712 = 54, LR932 = 55, A5 = 56, A10 = 57, A13 = 58, A312 = 59, A675 = 60, AC41E = 61, N10180 = 62, N10280 = 63, N10440 = 64, N14250 = 65, N14430 = 66, N14500 = 67, N14650 = 68, N15270 = 69, N16340 = 70, RCR123A = 71, N17500 = 72, N17670 = 73, N18350 = 74, N18500 = 75, N18650 = 76, N19670 = 77, N25500 = 78, N26650 = 79, N32600 = 80,
}
Expand description

BatCommonDesignationEnum.

Variants§

§

Unspecified = 0

Common type is unknown or unspecified

§

AAA = 1

Common type is as specified

§

AA = 2

Common type is as specified

§

C = 3

Common type is as specified

§

D = 4

Common type is as specified

§

N4V5 = 5

Common type is as specified

§

N6V0 = 6

Common type is as specified

§

N9V0 = 7

Common type is as specified

§

N12AA = 8

Common type is as specified

§

AAAA = 9

Common type is as specified

§

A = 10

Common type is as specified

§

B = 11

Common type is as specified

§

F = 12

Common type is as specified

§

N = 13

Common type is as specified

§

No6 = 14

Common type is as specified

§

SubC = 15

Common type is as specified

§

A23 = 16

Common type is as specified

§

A27 = 17

Common type is as specified

§

BA5800 = 18

Common type is as specified

§

Duplex = 19

Common type is as specified

§

N4SR44 = 20

Common type is as specified

§

N523 = 21

Common type is as specified

§

N531 = 22

Common type is as specified

§

N15V0 = 23

Common type is as specified

§

N22V5 = 24

Common type is as specified

§

N30V0 = 25

Common type is as specified

§

N45V0 = 26

Common type is as specified

§

N67V5 = 27

Common type is as specified

§

J = 28

Common type is as specified

§

CR123A = 29

Common type is as specified

§

CR2 = 30

Common type is as specified

§

N2CR5 = 31

Common type is as specified

§

CRP2 = 32

Common type is as specified

§

CRV3 = 33

Common type is as specified

§

SR41 = 34

Common type is as specified

§

SR43 = 35

Common type is as specified

§

SR44 = 36

Common type is as specified

§

SR45 = 37

Common type is as specified

§

SR48 = 38

Common type is as specified

§

SR54 = 39

Common type is as specified

§

SR55 = 40

Common type is as specified

§

SR57 = 41

Common type is as specified

§

SR58 = 42

Common type is as specified

§

SR59 = 43

Common type is as specified

§

SR60 = 44

Common type is as specified

§

SR63 = 45

Common type is as specified

§

SR64 = 46

Common type is as specified

§

SR65 = 47

Common type is as specified

§

SR66 = 48

Common type is as specified

§

SR67 = 49

Common type is as specified

§

SR68 = 50

Common type is as specified

§

SR69 = 51

Common type is as specified

§

SR516 = 52

Common type is as specified

§

SR731 = 53

Common type is as specified

§

SR712 = 54

Common type is as specified

§

LR932 = 55

Common type is as specified

§

A5 = 56

Common type is as specified

§

A10 = 57

Common type is as specified

§

A13 = 58

Common type is as specified

§

A312 = 59

Common type is as specified

§

A675 = 60

Common type is as specified

§

AC41E = 61

Common type is as specified

§

N10180 = 62

Common type is as specified

§

N10280 = 63

Common type is as specified

§

N10440 = 64

Common type is as specified

§

N14250 = 65

Common type is as specified

§

N14430 = 66

Common type is as specified

§

N14500 = 67

Common type is as specified

§

N14650 = 68

Common type is as specified

§

N15270 = 69

Common type is as specified

§

N16340 = 70

Common type is as specified

§

RCR123A = 71

Common type is as specified

§

N17500 = 72

Common type is as specified

§

N17670 = 73

Common type is as specified

§

N18350 = 74

Common type is as specified

§

N18500 = 75

Common type is as specified

§

N18650 = 76

Common type is as specified

§

N19670 = 77

Common type is as specified

§

N25500 = 78

Common type is as specified

§

N26650 = 79

Common type is as specified

§

N32600 = 80

Common type is as specified

Implementations§

Source§

impl BatCommonDesignationEnum

Source

pub const fn from_value(value: u8) -> Option<Self>

Reads a wire value, or None for one this revision does not define.

Source

pub const fn value(self) -> u8

Its wire value.

Trait Implementations§

Source§

impl Clone for BatCommonDesignationEnum

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for BatCommonDesignationEnum

Source§

impl Debug for BatCommonDesignationEnum

Source§

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

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

impl Eq for BatCommonDesignationEnum

Source§

impl<'a> FromTlv<'a> for BatCommonDesignationEnum

Source§

fn from_tlv(reader: &mut TlvReader<'a>, element: &Element<'a>) -> Result<Self>

Reads it.
Source§

impl Hash for BatCommonDesignationEnum

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for BatCommonDesignationEnum

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for BatCommonDesignationEnum

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for BatCommonDesignationEnum

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for BatCommonDesignationEnum

Source§

impl ToTlv for BatCommonDesignationEnum

Source§

fn to_tlv(&self, w: &mut TlvWriter<'_>, tag: Tag) -> Result<()>

Writes it under tag.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.