#[non_exhaustive]pub struct PhysicalConstant {
pub name: &'static str,
pub value: f64,
pub unit: &'static str,
pub uncertainty: f64,
pub obsolete: bool,
}Expand description
One entry of the CODATA table: SciPy’s physical_constants[name] as a record.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: &'static strThe name as CODATA spells it, e.g. "electron mass".
value: f64The recommended value, in unit.
unit: &'static strThe SI unit, e.g. "kg" or "J T^-1"; empty for dimensionless constants.
uncertainty: f64The standard (one-sigma) absolute uncertainty; 0 for exact constants.
obsolete: boolWhether the name comes from an earlier CODATA adjustment and is no longer current.
Implementations§
Trait Implementations§
Source§impl Clone for PhysicalConstant
impl Clone for PhysicalConstant
impl Copy for PhysicalConstant
Source§impl Debug for PhysicalConstant
impl Debug for PhysicalConstant
Source§impl PartialEq for PhysicalConstant
impl PartialEq for PhysicalConstant
impl StructuralPartialEq for PhysicalConstant
Auto Trait Implementations§
impl Freeze for PhysicalConstant
impl RefUnwindSafe for PhysicalConstant
impl Send for PhysicalConstant
impl Sync for PhysicalConstant
impl Unpin for PhysicalConstant
impl UnsafeUnpin for PhysicalConstant
impl UnwindSafe for PhysicalConstant
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