Struct libhaystack::haystack::units::unit_dimension::UnitDimensions
source · pub struct UnitDimensions {
pub kg: i8,
pub m: i8,
pub sec: i8,
pub k: i8,
pub a: i8,
pub mol: i8,
pub cd: i8,
}Expand description
A unit dimension.
Fields§
§kg: i8Kilograms
m: i8Meters
sec: i8Seconds
k: i8Kelvins
a: i8Amperes
mol: i8Mols
cd: i8Candelas
Trait Implementations§
source§impl Add<UnitDimensions> for UnitDimensions
impl Add<UnitDimensions> for UnitDimensions
Addition operator
source§impl Clone for UnitDimensions
impl Clone for UnitDimensions
source§fn clone(&self) -> UnitDimensions
fn clone(&self) -> UnitDimensions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UnitDimensions
impl Debug for UnitDimensions
source§impl Default for UnitDimensions
impl Default for UnitDimensions
source§fn default() -> UnitDimensions
fn default() -> UnitDimensions
Returns the “default value” for a type. Read more
source§impl Hash for UnitDimensions
impl Hash for UnitDimensions
source§impl Ord for UnitDimensions
impl Ord for UnitDimensions
source§fn cmp(&self, other: &UnitDimensions) -> Ordering
fn cmp(&self, other: &UnitDimensions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UnitDimensions> for UnitDimensions
impl PartialEq<UnitDimensions> for UnitDimensions
source§fn eq(&self, other: &UnitDimensions) -> bool
fn eq(&self, other: &UnitDimensions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<UnitDimensions> for UnitDimensions
impl PartialOrd<UnitDimensions> for UnitDimensions
source§fn partial_cmp(&self, other: &UnitDimensions) -> Option<Ordering>
fn partial_cmp(&self, other: &UnitDimensions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Sub<UnitDimensions> for UnitDimensions
impl Sub<UnitDimensions> for UnitDimensions
Subtraction operator
impl Copy for UnitDimensions
impl Eq for UnitDimensions
impl StructuralEq for UnitDimensions
impl StructuralPartialEq for UnitDimensions
Auto Trait Implementations§
impl RefUnwindSafe for UnitDimensions
impl Send for UnitDimensions
impl Sync for UnitDimensions
impl Unpin for UnitDimensions
impl UnwindSafe for UnitDimensions
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more