pub enum UnitIdentifier {
Show 44 variants
Derived(Box<UnitIdentifier>, Box<UnitIdentifier>),
Acre,
Bit,
Byte,
Celsius,
Centimeter,
Day,
Degree,
Fahrenheit,
Foot,
Gallon,
Gigabit,
Gigabyte,
Gram,
Hectare,
Hour,
Inch,
Kilobit,
Kilobyte,
Kilogram,
Kilometer,
Liter,
Megabit,
Megabyte,
Meter,
Microsecond,
Mile,
Milliliter,
Millimeter,
Millisecond,
Minute,
Month,
Nanosecond,
Ounce,
Percent,
Petabyte,
Pound,
Second,
Stone,
Terabit,
Terabyte,
Week,
Yard,
Year,
}
Variants§
Derived(Box<UnitIdentifier>, Box<UnitIdentifier>)
Acre
Bit
Byte
Celsius
Centimeter
Day
Degree
Fahrenheit
Foot
Gallon
Gigabit
Gigabyte
Gram
Hectare
Hour
Inch
Kilobit
Kilobyte
Kilogram
Kilometer
Liter
Megabit
Megabyte
Meter
Microsecond
Mile
Milliliter
Millimeter
Millisecond
Minute
Month
Nanosecond
Ounce
Percent
Petabyte
Pound
Second
Stone
Terabit
Terabyte
Week
Yard
Year
Implementations§
Source§impl UnitIdentifier
impl UnitIdentifier
pub fn per(&self, denominator: UnitIdentifier) -> UnitIdentifier
Trait Implementations§
Source§impl Clone for UnitIdentifier
impl Clone for UnitIdentifier
Source§fn clone(&self) -> UnitIdentifier
fn clone(&self) -> UnitIdentifier
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 UnitIdentifier
impl Debug for UnitIdentifier
Source§impl Display for UnitIdentifier
impl Display for UnitIdentifier
Source§impl FromStr for UnitIdentifier
impl FromStr for UnitIdentifier
Source§impl Hash for UnitIdentifier
impl Hash for UnitIdentifier
Source§impl PartialEq for UnitIdentifier
impl PartialEq for UnitIdentifier
impl Eq for UnitIdentifier
impl StructuralPartialEq for UnitIdentifier
Auto Trait Implementations§
impl Freeze for UnitIdentifier
impl RefUnwindSafe for UnitIdentifier
impl Send for UnitIdentifier
impl Sync for UnitIdentifier
impl Unpin for UnitIdentifier
impl UnwindSafe for UnitIdentifier
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