Struct measurements::TorqueEnergy [−][src]
pub struct TorqueEnergy { /* fields omitted */ }
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
impl From<TorqueEnergy> for Torque
[src]
impl From<TorqueEnergy> for Torque
fn from(t: TorqueEnergy) -> Torque
[src]
fn from(t: TorqueEnergy) -> Torque
Performs the conversion.
impl From<TorqueEnergy> for Energy
[src]
impl From<TorqueEnergy> for Energy
fn from(t: TorqueEnergy) -> Energy
[src]
fn from(t: TorqueEnergy) -> Energy
Performs the conversion.
impl Measurement for TorqueEnergy
[src]
impl Measurement for TorqueEnergy
fn as_base_units(&self) -> f64
[src]
fn as_base_units(&self) -> f64
Get this quantity in the base units
fn from_base_units(units: f64) -> Self
[src]
fn from_base_units(units: f64) -> Self
Create a new quantity from the base units
fn get_base_units_name(&self) -> &'static str
[src]
fn get_base_units_name(&self) -> &'static str
Return the base unit for this type, as a string. For example "kilograms" Read more
fn get_appropriate_units(&self) -> (&'static str, f64)
[src]
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
fn pick_appropriate_units(
&self,
list: &[(&'static str, f64)]
) -> (&'static str, f64)
[src]
fn pick_appropriate_units(
&self,
list: &[(&'static str, f64)]
) -> (&'static str, f64)
Given a list of units and their scale relative to the base unit, select the most appropriate one. Read more
impl Div<Length> for TorqueEnergy
[src]
impl Div<Length> for TorqueEnergy
type Output = Force
The resulting type after applying the /
operator.
fn div(self, rhs: Length) -> Self::Output
[src]
fn div(self, rhs: Length) -> Self::Output
Performs the /
operation.
impl Div<Force> for TorqueEnergy
[src]
impl Div<Force> for TorqueEnergy
Auto Trait Implementations
impl Send for TorqueEnergy
impl Send for TorqueEnergy
impl Sync for TorqueEnergy
impl Sync for TorqueEnergy