pub struct Dimension {
pub length: i8,
pub mass: i8,
pub time: i8,
pub current: i8,
pub temperature: i8,
pub amount: i8,
pub luminous: i8,
}Expand description
SI Base Dimensions: Length (m), Mass (kg), Time (s), Current (A), Temperature (K), Amount of substance (mol), Luminous intensity (cd).
Fields§
§length: i8§mass: i8§time: i8§current: i8§temperature: i8§amount: i8§luminous: i8Implementations§
Source§impl Dimension
impl Dimension
Sourcepub const fn dimensionless() -> Self
pub const fn dimensionless() -> Self
Dimensionless quantity.
Sourcepub const fn temperature() -> Self
pub const fn temperature() -> Self
Temperature dimension.
Sourcepub const fn acceleration() -> Self
pub const fn acceleration() -> Self
Acceleration dimension.
Trait Implementations§
impl Copy for Dimension
impl Eq for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.