pub struct Const;Implementations§
Source§impl Const
impl Const
pub const PI: f64 = std::f64::consts::PI
pub const E: f64 = std::f64::consts::E
pub const GOLDEN_RATIO: f64 = 1.618033988749895
pub const SQRT_2: f64 = 1.4142135623730951
pub const LN_2: f64 = 0.6931471805599453
pub const LN_10: f64 = 2.302585092994046
pub const EULER_MASCHERONI: f64 = 0.5772156649015329
pub const SPEED_OF_LIGHT: f64 = 299_792_458.0
pub const GRAVITATIONAL_CONSTANT: f64 = 6.674_30e-11
pub const PLANCK_CONSTANT: f64 = 6.626_070_15e-34
pub const REDUCED_PLANCK_CONSTANT: f64
pub const BOLTZMANN_CONSTANT: f64 = 1.380_649e-23
pub const ELEMENTARY_CHARGE: f64 = 1.602_176_634e-19
pub const ELECTRON_MASS: f64 = 9.109_383_701_5e-31
pub const PROTON_MASS: f64 = 1.672_621_923_69e-27
pub const NEUTRON_MASS: f64 = 1.674_927_471_4e-27
pub const AVOGADRO_CONSTANT: f64 = 6.022_140_76e23
pub const VACUUM_PERMITTIVITY: f64 = 8.854_187_812_8e-12
pub const VACUUM_PERMEABILITY: f64 = 1.256_637_062_12e-6
pub const FINE_STRUCTURE_CONSTANT: f64 = 7.297_352_5693e-3
pub const RYDBERG_CONSTANT: f64 = 10_973_731.568_160
pub const ATOMIC_MASS_UNIT: f64 = 1.660_539_066_60e-27
pub const FARADAY_CONSTANT: f64 = 96_485.332_123_1
pub const GAS_CONSTANT: f64 = 8.314_462_618_153_24
pub const STEFAN_BOLTZMANN_CONSTANT: f64 = 5.670_374_419e-8
pub const WIEN_DISPLACEMENT_CONSTANT: f64 = 2.897_771_955e-3
pub const ASTRONOMICAL_UNIT: f64 = 149_597_870_700.0
pub const LIGHT_YEAR: f64 = 9.460_730_472_580_8e15
pub const PARSEC: f64 = 3.085_677_581_491_367e16
pub const SOLAR_MASS: f64 = 1.988_847e30
pub const EARTH_MASS: f64 = 5.972_167e24
pub const EARTH_RADIUS: f64 = 6.371e6
pub const SOLAR_RADIUS: f64 = 6.957e8
pub const HUBBLE_CONSTANT: f64 = 67.4
pub fn pi(precision: Option<u32>) -> f64
pub fn e(precision: Option<u32>) -> f64
pub fn golden_ratio(precision: Option<u32>) -> f64
pub fn sqrt_2(precision: Option<u32>) -> f64
pub fn ln_2(precision: Option<u32>) -> f64
pub fn ln_10(precision: Option<u32>) -> f64
pub fn euler_mascheroni(precision: Option<u32>) -> f64
pub fn speed_of_light(unit: Speed) -> Speed
pub fn gravitational_constant(unit: Force) -> Force
pub fn planck_constant(unit: Energy) -> Energy
pub fn reduced_planck_constant(unit: Energy) -> Energy
pub fn boltzmann_constant(unit: Energy) -> Energy
pub fn elementary_charge(unit: ElectricCharge) -> ElectricCharge
pub fn electron_mass(unit: Mass) -> Mass
pub fn proton_mass(unit: Mass) -> Mass
pub fn avogadro_constant(unit: Frequency) -> Frequency
pub fn fine_structure_constant() -> f64
pub fn rydberg_constant(unit: Frequency) -> Frequency
pub fn atomic_mass_unit(unit: Mass) -> Mass
pub fn faraday_constant(unit: ElectricCharge) -> ElectricCharge
pub fn gas_constant(unit: Energy) -> Energy
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Const
impl RefUnwindSafe for Const
impl Send for Const
impl Sync for Const
impl Unpin for Const
impl UnsafeUnpin for Const
impl UnwindSafe for Const
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