Struct measurements::TorqueEnergy
source · [−]pub struct TorqueEnergy { /* private fields */ }
Expand description
If you multiply a Force by a Length, we can’t tell if you’re pushing something along (which requires Energy) or rotating something (which creates a Torque). This struct is what results from the multiplication, and you have to then convert it to whichever you want.
Trait Implementations
sourceimpl Div<Force> for TorqueEnergy
impl Div<Force> for TorqueEnergy
sourceimpl Div<Length> for TorqueEnergy
impl Div<Length> for TorqueEnergy
sourceimpl From<TorqueEnergy> for Torque
impl From<TorqueEnergy> for Torque
sourcefn from(t: TorqueEnergy) -> Torque
fn from(t: TorqueEnergy) -> Torque
Performs the conversion.
sourceimpl From<TorqueEnergy> for Energy
impl From<TorqueEnergy> for Energy
sourcefn from(t: TorqueEnergy) -> Energy
fn from(t: TorqueEnergy) -> Energy
Performs the conversion.
sourceimpl Measurement for TorqueEnergy
impl Measurement for TorqueEnergy
sourcefn as_base_units(&self) -> f64
fn as_base_units(&self) -> f64
Get this quantity in the base units
sourcefn from_base_units(units: f64) -> Self
fn from_base_units(units: f64) -> Self
Create a new quantity from the base units
sourcefn get_base_units_name(&self) -> &'static str
fn get_base_units_name(&self) -> &'static str
Return the base unit for this type, as a string. For example “kilograms” Read more
sourcefn get_appropriate_units(&self) -> (&'static str, f64)
fn get_appropriate_units(&self) -> (&'static str, f64)
Returns a string containing the most appropriate units for this quantity, and a floating point value representing this quantity in those units. Useful when, for example, a length might be in millimeters if it is very small, or kilometers when it is very large. Read more
Auto Trait Implementations
impl RefUnwindSafe for TorqueEnergy
impl Send for TorqueEnergy
impl Sync for TorqueEnergy
impl Unpin for TorqueEnergy
impl UnwindSafe for TorqueEnergy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more