pub enum Unit {
Show 64 variants Hms = 0, DMY = 1, Wh = 2, Wh1e1 = 3, Wh1e2 = 4, KWh = 5, KWh1e1 = 6, KWh1e2 = 7, MWh = 8, MWh1e1 = 9, MWh1e2 = 10, KJ = 11, KJ1e1 = 12, KJ1e2 = 13, MJ = 14, MJ1e1 = 15, MJ1e2 = 16, GJ = 17, GJ1e1 = 18, GJ1e2 = 19, W = 20, W1e1 = 21, W1e2 = 22, KW = 23, KW1e1 = 24, KW1e2 = 25, MW = 26, MW1e1 = 27, MW1e2 = 28, KJH = 29, KJH1e1 = 30, KJH1e2 = 31, MJH = 32, MJH1e1 = 33, MJH1e2 = 34, GJH = 35, GJH1e1 = 36, GJH1e2 = 37, Ml = 38, Ml1e1 = 39, Ml1e2 = 40, L = 41, L1e1 = 42, L1e2 = 43, M3 = 44, M31e1 = 45, M31e2 = 46, MlH = 47, MlH1e1 = 48, MlH1e2 = 49, LH = 50, LH1e1 = 51, LH1e2 = 52, M3H = 53, M3H1e1 = 54, M3H1e2 = 55, Celsius1e3 = 56, UnitsForHCA = 57, Reserved3A = 58, Reserved3B = 59, Reserved3C = 60, Reserved3D = 61, SameButHistoric = 62, WithoutUnits = 63,
}

Variants§

§

Hms = 0

§

DMY = 1

§

Wh = 2

§

Wh1e1 = 3

§

Wh1e2 = 4

§

KWh = 5

§

KWh1e1 = 6

§

KWh1e2 = 7

§

MWh = 8

§

MWh1e1 = 9

§

MWh1e2 = 10

§

KJ = 11

§

KJ1e1 = 12

§

KJ1e2 = 13

§

MJ = 14

§

MJ1e1 = 15

§

MJ1e2 = 16

§

GJ = 17

§

GJ1e1 = 18

§

GJ1e2 = 19

§

W = 20

§

W1e1 = 21

§

W1e2 = 22

§

KW = 23

§

KW1e1 = 24

§

KW1e2 = 25

§

MW = 26

§

MW1e1 = 27

§

MW1e2 = 28

§

KJH = 29

§

KJH1e1 = 30

§

KJH1e2 = 31

§

MJH = 32

§

MJH1e1 = 33

§

MJH1e2 = 34

§

GJH = 35

§

GJH1e1 = 36

§

GJH1e2 = 37

§

Ml = 38

§

Ml1e1 = 39

§

Ml1e2 = 40

§

L = 41

§

L1e1 = 42

§

L1e2 = 43

§

M3 = 44

§

M31e1 = 45

§

M31e2 = 46

§

MlH = 47

§

MlH1e1 = 48

§

MlH1e2 = 49

§

LH = 50

§

LH1e1 = 51

§

LH1e2 = 52

§

M3H = 53

§

M3H1e1 = 54

§

M3H1e2 = 55

§

Celsius1e3 = 56

§

UnitsForHCA = 57

§

Reserved3A = 58

§

Reserved3B = 59

§

Reserved3C = 60

§

Reserved3D = 61

§

SameButHistoric = 62

§

WithoutUnits = 63

Trait Implementations§

source§

impl Clone for Unit

source§

fn clone(&self) -> Unit

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 Unit

source§

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

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

impl PartialEq for Unit

source§

fn eq(&self, other: &Unit) -> 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 Unit

source§

impl StructuralPartialEq for Unit

Auto Trait Implementations§

§

impl RefUnwindSafe for Unit

§

impl Send for Unit

§

impl Sync for Unit

§

impl Unpin for Unit

§

impl UnwindSafe for Unit

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

§

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>,

§

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.
OSZAR »