pub enum ForceUnit {
Newton,
JoulePerMeter,
}Expand description
Unit of quantity Force.
Variants§
Trait Implementations§
Source§impl LinearScaledUnit for ForceUnit
impl LinearScaledUnit for ForceUnit
Source§fn from_scale(amnt: AmountT) -> Option<Self>
fn from_scale(amnt: AmountT) -> Option<Self>
Returns
Some(unit) where unit.scale() == Some(amnt), or None
if there is no such unit.Source§fn is_ref_unit(&self) -> bool
fn is_ref_unit(&self) -> bool
Returns
true if self is the reference unit of its unit type.Source§impl Unit for ForceUnit
impl Unit for ForceUnit
Source§type QuantityType = Force
type QuantityType = Force
Associated type of quantity
Source§fn si_prefix(&self) -> Option<SIPrefix>
fn si_prefix(&self) -> Option<SIPrefix>
Returns the SI prefix of
self, or None is self is not a SI unit.Source§fn from_symbol(symbol: &str) -> Option<Self>
fn from_symbol(symbol: &str) -> Option<Self>
Returns
Some(unit) where unit.symbol() == symbol, or None if
there is no such unit.Source§fn as_qty(&self) -> Self::QuantityType
fn as_qty(&self) -> Self::QuantityType
Returns
1 * selfimpl Copy for ForceUnit
impl Eq for ForceUnit
impl StructuralPartialEq for ForceUnit
Auto Trait Implementations§
impl Freeze for ForceUnit
impl RefUnwindSafe for ForceUnit
impl Send for ForceUnit
impl Sync for ForceUnit
impl Unpin for ForceUnit
impl UnsafeUnpin for ForceUnit
impl UnwindSafe for ForceUnit
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