pub struct Mass;Expand description
A mass.
Implementations§
Source§impl Mass
impl Mass
Sourcepub const fn kilograms(value: TensorRank0) -> Quantity<Mass>
pub const fn kilograms(value: TensorRank0) -> Quantity<Mass>
A quantity of kilograms.
Sourcepub const fn grams(value: TensorRank0) -> Quantity<Mass>
pub const fn grams(value: TensorRank0) -> Quantity<Mass>
A quantity of grams.
Sourcepub const fn milligrams(value: TensorRank0) -> Quantity<Mass>
pub const fn milligrams(value: TensorRank0) -> Quantity<Mass>
A quantity of milligrams.
Sourcepub const fn tonnes(value: TensorRank0) -> Quantity<Mass>
pub const fn tonnes(value: TensorRank0) -> Quantity<Mass>
A quantity of tonnes.
Sourcepub const fn pounds_mass(value: TensorRank0) -> Quantity<Mass>
pub const fn pounds_mass(value: TensorRank0) -> Quantity<Mass>
A quantity of pounds mass.
Trait Implementations§
impl Copy for Mass
impl Eq for Mass
impl StructuralPartialEq for Mass
impl Unit for Mass
Source§impl UnitDiv<Mass> for ForcePerLength
impl UnitDiv<Mass> for ForcePerLength
Source§type Output = RateSquared
type Output = RateSquared
The unit of the quotient.
Source§impl UnitHalves for Mass
impl UnitHalves for Mass
Source§impl UnitMul<Mass> for RateSquared
impl UnitMul<Mass> for RateSquared
Source§type Output = ForcePerLength
type Output = ForcePerLength
The unit of the product.
Source§impl UnitMul<RateSquared> for Mass
impl UnitMul<RateSquared> for Mass
Source§type Output = ForcePerLength
type Output = ForcePerLength
The unit of the product.
Auto Trait Implementations§
impl Freeze for Mass
impl RefUnwindSafe for Mass
impl Send for Mass
impl Sync for Mass
impl Unpin for Mass
impl UnsafeUnpin for Mass
impl UnwindSafe for Mass
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