Unit

Trait Unit 

Source
pub trait Unit:
    Copy
    + PartialEq
    + Debug
    + 'static {
    type Dim: Dimension;

    const RATIO: f64;
    const SYMBOL: &'static str;
}
Expand description

Trait implemented by every unit type.

  • RATIO is the conversion factor from this unit to the canonical scaling unit of the same dimension. Example: if metres are canonical (Meter::RATIO == 1.0), then kilometres use Kilometer::RATIO == 1000.0 because 1 km = 1000 m.

  • SYMBOL is the printable string (e.g. "m" or "km").

  • Dim ties the unit to its underlying Dimension.

§Invariants

  • Implementations should be zero-sized marker types (this crate’s built-in units are unit structs with no fields).
  • RATIO should be finite and non-zero.

Required Associated Constants§

Source

const RATIO: f64

Unit-to-canonical conversion factor.

Source

const SYMBOL: &'static str

Printable symbol, shown by core::fmt::Display.

Required Associated Types§

Source

type Dim: Dimension

Dimension to which this unit belongs.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Unit for Unitless

Source§

const RATIO: f64 = 1f64

Source§

const SYMBOL: &'static str = ""

Source§

type Dim = Dimensionless

Source§

impl Unit for Arcminute

Source§

const RATIO: f64 = 0.016666666666666666f64

Source§

const SYMBOL: &'static str = "Arcm"

Source§

type Dim = Angular

Source§

impl Unit for Arcsecond

Source§

const RATIO: f64 = 2.7777777777777778E-4f64

Source§

const SYMBOL: &'static str = "Arcs"

Source§

type Dim = Angular

Source§

impl Unit for Degree

Source§

const RATIO: f64 = 1f64

Source§

const SYMBOL: &'static str = "Deg"

Source§

type Dim = Angular

Source§

impl Unit for Gradian

Source§

const RATIO: f64 = 0.90000000000000002f64

Source§

const SYMBOL: &'static str = "Gon"

Source§

type Dim = Angular

Source§

impl Unit for HourAngle

Source§

const RATIO: f64 = 15f64

Source§

const SYMBOL: &'static str = "Hms"

Source§

type Dim = Angular

Source§

impl Unit for MicroArcsecond

Source§

const RATIO: f64 = 2.7777777777777777E-10f64

Source§

const SYMBOL: &'static str = "μas"

Source§

type Dim = Angular

Source§

impl Unit for MilliArcsecond

Source§

const RATIO: f64 = 2.7777777777777776E-7f64

Source§

const SYMBOL: &'static str = "Mas"

Source§

type Dim = Angular

Source§

impl Unit for Milliradian

Source§

const RATIO: f64 = 0.057295779513082325f64

Source§

const SYMBOL: &'static str = "mrad"

Source§

type Dim = Angular

Source§

impl Unit for Radian

Source§

const RATIO: f64 = 57.295779513082323f64

Source§

const SYMBOL: &'static str = "Rad"

Source§

type Dim = Angular

Source§

impl Unit for Turn

Source§

const RATIO: f64 = 360f64

Source§

const SYMBOL: &'static str = "Turn"

Source§

type Dim = Angular

Source§

impl Unit for EarthEquatorialRadius

Source§

const RATIO: f64 = 6378137f64

Source§

const SYMBOL: &'static str = "Rearth_eq"

Source§

type Dim = Length

Source§

impl Unit for EarthPolarRadius

Source§

const RATIO: f64 = 6356752.3141999999f64

Source§

const SYMBOL: &'static str = "Rearth_p"

Source§

type Dim = Length

Source§

impl Unit for EarthRadius

Source§

const RATIO: f64 = 6371000f64

Source§

const SYMBOL: &'static str = "Rearth"

Source§

type Dim = Length

Source§

impl Unit for JupiterRadius

Source§

const RATIO: f64 = 71492000f64

Source§

const SYMBOL: &'static str = "Rjup"

Source§

type Dim = Length

Source§

impl Unit for LunarDistance

Source§

const RATIO: f64 = 3.844E+8f64

Source§

const SYMBOL: &'static str = "LD"

Source§

type Dim = Length

Source§

impl Unit for LunarRadius

Source§

const RATIO: f64 = 1737400f64

Source§

const SYMBOL: &'static str = "Rmoon"

Source§

type Dim = Length

Source§

impl Unit for SolarDiameter

Source§

const RATIO: f64 = 1.3914E+9f64

Source§

const SYMBOL: &'static str = "Dsun"

Source§

type Dim = Length

Source§

impl Unit for SolarRadius

Source§

const RATIO: f64 = 6.957E+8f64

Source§

const SYMBOL: &'static str = "Rsun"

Source§

type Dim = Length

Source§

impl Unit for AstronomicalUnit

Source§

const RATIO: f64 = 149597870700f64

Source§

const SYMBOL: &'static str = "au"

Source§

type Dim = Length

Source§

impl Unit for Attometer

Source§

const RATIO: f64 = 1.0000000000000001E-18f64

Source§

const SYMBOL: &'static str = "am"

Source§

type Dim = Length

Source§

impl Unit for BohrRadius

Source§

const RATIO: f64 = 5.2917721090299998E-11f64

Source§

const SYMBOL: &'static str = "a0"

Source§

type Dim = Length

Source§

impl Unit for Centimeter

Source§

const RATIO: f64 = 0.01f64

Source§

const SYMBOL: &'static str = "cm"

Source§

type Dim = Length

Source§

impl Unit for Chain

Source§

const RATIO: f64 = 20.116800000000001f64

Source§

const SYMBOL: &'static str = "ch"

Source§

type Dim = Length

Source§

impl Unit for ClassicalElectronRadius

Source§

const RATIO: f64 = 2.8179403262E-15f64

Source§

const SYMBOL: &'static str = "re"

Source§

type Dim = Length

Source§

impl Unit for Decameter

Source§

const RATIO: f64 = 10f64

Source§

const SYMBOL: &'static str = "dam"

Source§

type Dim = Length

Source§

impl Unit for Decimeter

Source§

const RATIO: f64 = 0.10000000000000001f64

Source§

const SYMBOL: &'static str = "dm"

Source§

type Dim = Length

Source§

impl Unit for EarthEquatorialCircumference

Source§

const RATIO: f64 = 40075017f64

Source§

const SYMBOL: &'static str = "Ceq"

Source§

type Dim = Length

Source§

impl Unit for EarthMeridionalCircumference

Source§

const RATIO: f64 = 40007863f64

Source§

const SYMBOL: &'static str = "Cmer"

Source§

type Dim = Length

Source§

impl Unit for ElectronReducedComptonWavelength

Source§

const RATIO: f64 = 3.8615926795999998E-13f64

Source§

const SYMBOL: &'static str = "lambda_bar_e"

Source§

type Dim = Length

Source§

impl Unit for Exameter

Source§

const RATIO: f64 = 1.0E+18f64

Source§

const SYMBOL: &'static str = "Em"

Source§

type Dim = Length

Source§

impl Unit for Fathom

Source§

const RATIO: f64 = 1.8288000000000002f64

Source§

const SYMBOL: &'static str = "ftm"

Source§

type Dim = Length

Source§

impl Unit for Femtometer

Source§

const RATIO: f64 = 1.0000000000000001E-15f64

Source§

const SYMBOL: &'static str = "fm"

Source§

type Dim = Length

Source§

impl Unit for Foot

Source§

const RATIO: f64 = 0.30480000000000002f64

Source§

const SYMBOL: &'static str = "ft"

Source§

type Dim = Length

Source§

impl Unit for Gigameter

Source§

const RATIO: f64 = 1.0E+9f64

Source§

const SYMBOL: &'static str = "Gm"

Source§

type Dim = Length

Source§

impl Unit for Gigaparsec

Source§

const RATIO: f64 = 3.0856775814913673E+25f64

Source§

const SYMBOL: &'static str = "Gpc"

Source§

type Dim = Length

Source§

impl Unit for Hectometer

Source§

const RATIO: f64 = 100f64

Source§

const SYMBOL: &'static str = "hm"

Source§

type Dim = Length

Source§

impl Unit for Inch

Source§

const RATIO: f64 = 0.025399999999999999f64

Source§

const SYMBOL: &'static str = "in"

Source§

type Dim = Length

Source§

impl Unit for Kilometer

Source§

const RATIO: f64 = 1000f64

Source§

const SYMBOL: &'static str = "Km"

Source§

type Dim = Length

Source§

impl Unit for Kiloparsec

Source§

const RATIO: f64 = 3.0856775814913675E+19f64

Source§

const SYMBOL: &'static str = "kpc"

Source§

type Dim = Length

Source§

impl Unit for LightYear

Source§

const RATIO: f64 = 9460730472580800f64

Source§

const SYMBOL: &'static str = "ly"

Source§

type Dim = Length

Source§

const RATIO: f64 = 0.20116800000000001f64

Source§

const SYMBOL: &'static str = "lk"

Source§

type Dim = Length

Source§

impl Unit for Megameter

Source§

const RATIO: f64 = 1.0E+6f64

Source§

const SYMBOL: &'static str = "Mm"

Source§

type Dim = Length

Source§

impl Unit for Megaparsec

Source§

const RATIO: f64 = 3.0856775814913672E+22f64

Source§

const SYMBOL: &'static str = "Mpc"

Source§

type Dim = Length

Source§

impl Unit for Meter

Source§

const RATIO: f64 = 1f64

Source§

const SYMBOL: &'static str = "m"

Source§

type Dim = Length

Source§

impl Unit for Micrometer

Source§

const RATIO: f64 = 9.9999999999999995E-7f64

Source§

const SYMBOL: &'static str = "um"

Source§

type Dim = Length

Source§

impl Unit for Mile

Source§

const RATIO: f64 = 1609.3440000000001f64

Source§

const SYMBOL: &'static str = "mi"

Source§

type Dim = Length

Source§

impl Unit for Millimeter

Source§

const RATIO: f64 = 0.001f64

Source§

const SYMBOL: &'static str = "mm"

Source§

type Dim = Length

Source§

impl Unit for Nanometer

Source§

const RATIO: f64 = 1.0000000000000001E-9f64

Source§

const SYMBOL: &'static str = "nm"

Source§

type Dim = Length

Source§

impl Unit for NauticalMile

Source§

const RATIO: f64 = 1852f64

Source§

const SYMBOL: &'static str = "nmi"

Source§

type Dim = Length

Source§

impl Unit for Parsec

Source§

const RATIO: f64 = 30856775814913672f64

Source§

const SYMBOL: &'static str = "pc"

Source§

type Dim = Length

Source§

impl Unit for Petameter

Source§

const RATIO: f64 = 1.0E+15f64

Source§

const SYMBOL: &'static str = "Pm"

Source§

type Dim = Length

Source§

impl Unit for Picometer

Source§

const RATIO: f64 = 9.9999999999999998E-13f64

Source§

const SYMBOL: &'static str = "pm"

Source§

type Dim = Length

Source§

impl Unit for PlanckLength

Source§

const RATIO: f64 = 1.6162550000000001E-35f64

Source§

const SYMBOL: &'static str = "lp"

Source§

type Dim = Length

Source§

impl Unit for Rod

Source§

const RATIO: f64 = 5.0292000000000003f64

Source§

const SYMBOL: &'static str = "rd"

Source§

type Dim = Length

Source§

impl Unit for Terameter

Source§

const RATIO: f64 = 1.0E+12f64

Source§

const SYMBOL: &'static str = "Tm"

Source§

type Dim = Length

Source§

impl Unit for Yard

Source§

const RATIO: f64 = 0.91439999999999999f64

Source§

const SYMBOL: &'static str = "yd"

Source§

type Dim = Length

Source§

impl Unit for Yoctometer

Source§

const RATIO: f64 = 9.9999999999999992E-25f64

Source§

const SYMBOL: &'static str = "ym"

Source§

type Dim = Length

Source§

impl Unit for Yottameter

Source§

const RATIO: f64 = 9.9999999999999998E+23f64

Source§

const SYMBOL: &'static str = "Ym"

Source§

type Dim = Length

Source§

impl Unit for Zeptometer

Source§

const RATIO: f64 = 9.9999999999999991E-22f64

Source§

const SYMBOL: &'static str = "zm"

Source§

type Dim = Length

Source§

impl Unit for Zettameter

Source§

const RATIO: f64 = 1.0E+21f64

Source§

const SYMBOL: &'static str = "Zm"

Source§

type Dim = Length

Source§

impl Unit for AtomicMassUnit

Source§

const RATIO: f64 = 1.6605390689200001E-24f64

Source§

const SYMBOL: &'static str = "u"

Source§

type Dim = Mass

Source§

impl Unit for Attogram

Source§

const RATIO: f64 = 1.0000000000000001E-18f64

Source§

const SYMBOL: &'static str = "ag"

Source§

type Dim = Mass

Source§

impl Unit for Carat

Source§

const RATIO: f64 = 0.20000000000000001f64

Source§

const SYMBOL: &'static str = "ct"

Source§

type Dim = Mass

Source§

impl Unit for Centigram

Source§

const RATIO: f64 = 0.01f64

Source§

const SYMBOL: &'static str = "cg"

Source§

type Dim = Mass

Source§

impl Unit for Decagram

Source§

const RATIO: f64 = 10f64

Source§

const SYMBOL: &'static str = "dag"

Source§

type Dim = Mass

Source§

impl Unit for Decigram

Source§

const RATIO: f64 = 0.10000000000000001f64

Source§

const SYMBOL: &'static str = "dg"

Source§

type Dim = Mass

Source§

impl Unit for Exagram

Source§

const RATIO: f64 = 1.0E+18f64

Source§

const SYMBOL: &'static str = "Eg"

Source§

type Dim = Mass

Source§

impl Unit for Femtogram

Source§

const RATIO: f64 = 1.0000000000000001E-15f64

Source§

const SYMBOL: &'static str = "fg"

Source§

type Dim = Mass

Source§

impl Unit for Gigagram

Source§

const RATIO: f64 = 1.0E+9f64

Source§

const SYMBOL: &'static str = "Gg"

Source§

type Dim = Mass

Source§

impl Unit for Grain

Source§

const RATIO: f64 = 0.0064798909999999998f64

Source§

const SYMBOL: &'static str = "gr"

Source§

type Dim = Mass

Source§

impl Unit for Gram

Source§

const RATIO: f64 = 1f64

Source§

const SYMBOL: &'static str = "g"

Source§

type Dim = Mass

Source§

impl Unit for Hectogram

Source§

const RATIO: f64 = 100f64

Source§

const SYMBOL: &'static str = "hg"

Source§

type Dim = Mass

Source§

impl Unit for Kilogram

Source§

const RATIO: f64 = 1000f64

Source§

const SYMBOL: &'static str = "kg"

Source§

type Dim = Mass

Source§

impl Unit for LongTon

Source§

const RATIO: f64 = 1016046.9088000001f64

Source§

const SYMBOL: &'static str = "ton_uk"

Source§

type Dim = Mass

Source§

impl Unit for Megagram

Source§

const RATIO: f64 = 1.0E+6f64

Source§

const SYMBOL: &'static str = "Mg"

Source§

type Dim = Mass

Source§

impl Unit for Microgram

Source§

const RATIO: f64 = 9.9999999999999995E-7f64

Source§

const SYMBOL: &'static str = "µg"

Source§

type Dim = Mass

Source§

impl Unit for Milligram

Source§

const RATIO: f64 = 0.001f64

Source§

const SYMBOL: &'static str = "mg"

Source§

type Dim = Mass

Source§

impl Unit for Nanogram

Source§

const RATIO: f64 = 1.0000000000000001E-9f64

Source§

const SYMBOL: &'static str = "ng"

Source§

type Dim = Mass

Source§

impl Unit for Ounce

Source§

const RATIO: f64 = 28.349523125000001f64

Source§

const SYMBOL: &'static str = "oz"

Source§

type Dim = Mass

Source§

impl Unit for Petagram

Source§

const RATIO: f64 = 1.0E+15f64

Source§

const SYMBOL: &'static str = "Pg"

Source§

type Dim = Mass

Source§

impl Unit for Picogram

Source§

const RATIO: f64 = 9.9999999999999998E-13f64

Source§

const SYMBOL: &'static str = "pg"

Source§

type Dim = Mass

Source§

impl Unit for Pound

Source§

const RATIO: f64 = 453.59237000000002f64

Source§

const SYMBOL: &'static str = "lb"

Source§

type Dim = Mass

Source§

impl Unit for ShortTon

Source§

const RATIO: f64 = 907184.73999999999f64

Source§

const SYMBOL: &'static str = "ton_us"

Source§

type Dim = Mass

Source§

impl Unit for SolarMass

Source§

const RATIO: f64 = 1.9884160000000001E+33f64

Source§

const SYMBOL: &'static str = "M☉"

Source§

type Dim = Mass

Source§

impl Unit for Stone

Source§

const RATIO: f64 = 6350.2931800000006f64

Source§

const SYMBOL: &'static str = "st"

Source§

type Dim = Mass

Source§

impl Unit for Teragram

Source§

const RATIO: f64 = 1.0E+12f64

Source§

const SYMBOL: &'static str = "Tg"

Source§

type Dim = Mass

Source§

impl Unit for Tonne

Source§

const RATIO: f64 = 1.0E+6f64

Source§

const SYMBOL: &'static str = "t"

Source§

type Dim = Mass

Source§

impl Unit for Yoctogram

Source§

const RATIO: f64 = 9.9999999999999992E-25f64

Source§

const SYMBOL: &'static str = "yg"

Source§

type Dim = Mass

Source§

impl Unit for Yottagram

Source§

const RATIO: f64 = 9.9999999999999998E+23f64

Source§

const SYMBOL: &'static str = "Yg"

Source§

type Dim = Mass

Source§

impl Unit for Zeptogram

Source§

const RATIO: f64 = 9.9999999999999991E-22f64

Source§

const SYMBOL: &'static str = "zg"

Source§

type Dim = Mass

Source§

impl Unit for Zettagram

Source§

const RATIO: f64 = 1.0E+21f64

Source§

const SYMBOL: &'static str = "Zg"

Source§

type Dim = Mass

Source§

impl Unit for Attowatt

Source§

const RATIO: f64 = 1.0000000000000001E-18f64

Source§

const SYMBOL: &'static str = "aW"

Source§

type Dim = Power

Source§

impl Unit for Decawatt

Source§

const RATIO: f64 = 10f64

Source§

const SYMBOL: &'static str = "daW"

Source§

type Dim = Power

Source§

impl Unit for Deciwatt

Source§

const RATIO: f64 = 0.10000000000000001f64

Source§

const SYMBOL: &'static str = "dW"

Source§

type Dim = Power

Source§

impl Unit for ErgPerSecond

Source§

const RATIO: f64 = 9.9999999999999995E-8f64

Source§

const SYMBOL: &'static str = "erg/s"

Source§

type Dim = Power

Source§

impl Unit for Exawatt

Source§

const RATIO: f64 = 1.0E+18f64

Source§

const SYMBOL: &'static str = "EW"

Source§

type Dim = Power

Source§

impl Unit for Femtowatt

Source§

const RATIO: f64 = 1.0000000000000001E-15f64

Source§

const SYMBOL: &'static str = "fW"

Source§

type Dim = Power

Source§

impl Unit for Gigawatt

Source§

const RATIO: f64 = 1.0E+9f64

Source§

const SYMBOL: &'static str = "GW"

Source§

type Dim = Power

Source§

impl Unit for Hectowatt

Source§

const RATIO: f64 = 100f64

Source§

const SYMBOL: &'static str = "hW"

Source§

type Dim = Power

Source§

impl Unit for HorsepowerElectric

Source§

const RATIO: f64 = 746f64

Source§

const SYMBOL: &'static str = "hp_e"

Source§

type Dim = Power

Source§

impl Unit for HorsepowerMetric

Source§

const RATIO: f64 = 735.49874999999997f64

Source§

const SYMBOL: &'static str = "PS"

Source§

type Dim = Power

Source§

impl Unit for Kilowatt

Source§

const RATIO: f64 = 1000f64

Source§

const SYMBOL: &'static str = "kW"

Source§

type Dim = Power

Source§

impl Unit for Megawatt

Source§

const RATIO: f64 = 1.0E+6f64

Source§

const SYMBOL: &'static str = "MW"

Source§

type Dim = Power

Source§

impl Unit for Microwatt

Source§

const RATIO: f64 = 9.9999999999999995E-7f64

Source§

const SYMBOL: &'static str = "µW"

Source§

type Dim = Power

Source§

impl Unit for Milliwatt

Source§

const RATIO: f64 = 0.001f64

Source§

const SYMBOL: &'static str = "mW"

Source§

type Dim = Power

Source§

impl Unit for Nanowatt

Source§

const RATIO: f64 = 1.0000000000000001E-9f64

Source§

const SYMBOL: &'static str = "nW"

Source§

type Dim = Power

Source§

impl Unit for Petawatt

Source§

const RATIO: f64 = 1.0E+15f64

Source§

const SYMBOL: &'static str = "PW"

Source§

type Dim = Power

Source§

impl Unit for Picowatt

Source§

const RATIO: f64 = 9.9999999999999998E-13f64

Source§

const SYMBOL: &'static str = "pW"

Source§

type Dim = Power

Source§

impl Unit for SolarLuminosity

Source§

const RATIO: f64 = 3.8280000000000001E+26f64

Source§

const SYMBOL: &'static str = "L☉"

Source§

type Dim = Power

Source§

impl Unit for Terawatt

Source§

const RATIO: f64 = 1.0E+12f64

Source§

const SYMBOL: &'static str = "TW"

Source§

type Dim = Power

Source§

impl Unit for Watt

Source§

const RATIO: f64 = 1f64

Source§

const SYMBOL: &'static str = "W"

Source§

type Dim = Power

Source§

impl Unit for Yoctowatt

Source§

const RATIO: f64 = 9.9999999999999992E-25f64

Source§

const SYMBOL: &'static str = "yW"

Source§

type Dim = Power

Source§

impl Unit for Yottawatt

Source§

const RATIO: f64 = 9.9999999999999998E+23f64

Source§

const SYMBOL: &'static str = "YW"

Source§

type Dim = Power

Source§

impl Unit for Zeptowatt

Source§

const RATIO: f64 = 9.9999999999999991E-22f64

Source§

const SYMBOL: &'static str = "zW"

Source§

type Dim = Power

Source§

impl Unit for Zettawatt

Source§

const RATIO: f64 = 1.0E+21f64

Source§

const SYMBOL: &'static str = "ZW"

Source§

type Dim = Power

Source§

impl Unit for Attosecond

Source§

const RATIO: f64 = 1.0000000000000001E-18f64

Source§

const SYMBOL: &'static str = "as"

Source§

type Dim = Time

Source§

impl Unit for Centisecond

Source§

const RATIO: f64 = 0.01f64

Source§

const SYMBOL: &'static str = "cs"

Source§

type Dim = Time

Source§

impl Unit for Century

Source§

const RATIO: f64 = 3155695200f64

Source§

const SYMBOL: &'static str = "cent"

Source§

type Dim = Time

Source§

impl Unit for Day

Source§

const RATIO: f64 = 86400f64

Source§

const SYMBOL: &'static str = "d"

Source§

type Dim = Time

Source§

impl Unit for Decade

Source§

const RATIO: f64 = 315569520f64

Source§

const SYMBOL: &'static str = "dec"

Source§

type Dim = Time

Source§

impl Unit for Decasecond

Source§

const RATIO: f64 = 10f64

Source§

const SYMBOL: &'static str = "das"

Source§

type Dim = Time

Source§

impl Unit for Decisecond

Source§

const RATIO: f64 = 0.10000000000000001f64

Source§

const SYMBOL: &'static str = "ds"

Source§

type Dim = Time

Source§

impl Unit for Femtosecond

Source§

const RATIO: f64 = 1.0000000000000001E-15f64

Source§

const SYMBOL: &'static str = "fs"

Source§

type Dim = Time

Source§

impl Unit for Fortnight

Source§

const RATIO: f64 = 1209600f64

Source§

const SYMBOL: &'static str = "fn"

Source§

type Dim = Time

Source§

impl Unit for Gigasecond

Source§

const RATIO: f64 = 1.0E+9f64

Source§

const SYMBOL: &'static str = "Gs"

Source§

type Dim = Time

Source§

impl Unit for Hectosecond

Source§

const RATIO: f64 = 100f64

Source§

const SYMBOL: &'static str = "hs"

Source§

type Dim = Time

Source§

impl Unit for Hour

Source§

const RATIO: f64 = 3600f64

Source§

const SYMBOL: &'static str = "h"

Source§

type Dim = Time

Source§

impl Unit for JulianCentury

Source§

const RATIO: f64 = 3.15576E+9f64

Source§

const SYMBOL: &'static str = "JC"

Source§

type Dim = Time

Source§

impl Unit for JulianYear

Source§

const RATIO: f64 = 31557600f64

Source§

const SYMBOL: &'static str = "a"

Source§

type Dim = Time

Source§

impl Unit for Kilosecond

Source§

const RATIO: f64 = 1000f64

Source§

const SYMBOL: &'static str = "ks"

Source§

type Dim = Time

Source§

impl Unit for Megasecond

Source§

const RATIO: f64 = 1.0E+6f64

Source§

const SYMBOL: &'static str = "Ms"

Source§

type Dim = Time

Source§

impl Unit for Microsecond

Source§

const RATIO: f64 = 9.9999999999999995E-7f64

Source§

const SYMBOL: &'static str = "µs"

Source§

type Dim = Time

Source§

impl Unit for Millennium

Source§

const RATIO: f64 = 31556952000f64

Source§

const SYMBOL: &'static str = "mill"

Source§

type Dim = Time

Source§

impl Unit for Millisecond

Source§

const RATIO: f64 = 0.001f64

Source§

const SYMBOL: &'static str = "ms"

Source§

type Dim = Time

Source§

impl Unit for Minute

Source§

const RATIO: f64 = 60f64

Source§

const SYMBOL: &'static str = "min"

Source§

type Dim = Time

Source§

impl Unit for Nanosecond

Source§

const RATIO: f64 = 1.0000000000000001E-9f64

Source§

const SYMBOL: &'static str = "ns"

Source§

type Dim = Time

Source§

impl Unit for Picosecond

Source§

const RATIO: f64 = 9.9999999999999998E-13f64

Source§

const SYMBOL: &'static str = "ps"

Source§

type Dim = Time

Source§

impl Unit for Second

Source§

const RATIO: f64 = 1f64

Source§

const SYMBOL: &'static str = "s"

Source§

type Dim = Time

Source§

impl Unit for SiderealDay

Source§

const RATIO: f64 = 86164.090500000006f64

Source§

const SYMBOL: &'static str = "sd"

Source§

type Dim = Time

Source§

impl Unit for SiderealYear

Source§

const RATIO: f64 = 31558149.763545599f64

Source§

const SYMBOL: &'static str = "syr"

Source§

type Dim = Time

Source§

impl Unit for SynodicMonth

Source§

const RATIO: f64 = 2551442.8032f64

Source§

const SYMBOL: &'static str = "synmo"

Source§

type Dim = Time

Source§

impl Unit for Terasecond

Source§

const RATIO: f64 = 1.0E+12f64

Source§

const SYMBOL: &'static str = "Ts"

Source§

type Dim = Time

Source§

impl Unit for Week

Source§

const RATIO: f64 = 604800f64

Source§

const SYMBOL: &'static str = "wk"

Source§

type Dim = Time

Source§

impl Unit for Year

Source§

const RATIO: f64 = 31556952f64

Source§

const SYMBOL: &'static str = "yr"

Source§

type Dim = Time

Source§

impl<N: Unit, D: Unit> Unit for Per<N, D>

Source§

const RATIO: f64

Source§

const SYMBOL: &'static str = ""

Source§

type Dim = DivDim<<N as Unit>::Dim, <D as Unit>::Dim>