[−][src]Enum cpc::units::UnitType
An enum of all possible unit types, like Length
, DigitalStorage
etc.
There is also a NoType
unit type for normal numbers.
Variants
A normal number, for example 5
A unit of time, for example Hour
A unit of length, for example Mile
A unit of area, for example SquareKilometer
A unit of volume, for example Liter
or Tablespoon
A unit of mass, for example Kilobyte
A unit of digital storage, for example Kilobyte
A unit of energy, for example Joule
or KilowattHour
A unit of power, for example Watt
A unit of pressure, for example Bar
A unit of x, for example KilometersPerHour
A unit of temperature, for example Kelvin
Trait Implementations
impl Clone for UnitType
[src]
impl Copy for UnitType
[src]
impl Debug for UnitType
[src]
impl PartialEq<UnitType> for UnitType
[src]
impl StructuralPartialEq for UnitType
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnwindSafe for UnitType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,