Expand description
Predefined quantities (based on crate ‘quantities’) with units at astronomical scale.
For more information see crate quantities or its repository quantities.rs.
Structs§
- Duration
- Duration: ‘what a clock reads’
- Length
- The quantity of distance between two points in spacetime.
- Mass
- The quantity of matter in an astonomical body.
- Speed
- Magnitude of the change of an objects position per unit of time
Enums§
- Duration
Unit - Unit of quantity
Duration
. - Length
Unit - Unit of quantity
Length
. - Mass
Unit - Unit of quantity
Mass
. - Speed
Unit - Unit of quantity
Speed
.
Constants§
- ASTRONOMICAL_
UNIT - Reference unit of quantity
Length
(= 149597870700·m) - ASTRONOMICAL_
UNITS_ PER_ DAY - Reference unit of quantity
Speed
- DAY
- Reference unit of quantity
Duration
(= 24·h) - EARTH_
MASS - 10000/3329460487·M☉
- EARTH_
PERIOD - Earth’s Orbital Period (≈ 365.256363004·d)
- GIGALIGHTYEAR
- 10⁹·ly
- GIGAPARSEC
- 10⁹·pc
- GREGORIAN_
YEAR - 365.2425·d
- HOUR
- 60·min
- JULIAN_
YEAR - 365.25·d
- JUPITER_
MASS - 1000000/1047348644·M☉
- KILOLIGHTYEAR
- 1000·ly
- KILOMETER
- 1000·m
- KILOMETER_
PER_ HOUR - km/h
- KILOPARSEC
- 1000·pc
- LIGHTSECOND
- 299792458·m
- LIGHTYEAR
- 31557600·ls
- LUNAR_
MASS - 1/27068510·M☉
- MEGALIGHTYEAR
- 10⁶·ly
- MEGAPARSEC
- 10⁶·pc
- METER_
PER_ SECOND - SI reference unit
- MINUTE
- 60·s
- PARSEC
- 648000/π·au
- SECOND
- SI reference unit
- SIDERAL_
DAY - a·d/(a + d)
- SOLAR_
MASS - Reference unit of quantity
Mass
- SPEED_
OF_ LIGHT - ls/s