Struct measurements::torque::Torque[][src]

pub struct Torque { /* fields omitted */ }

The 'Torque' struct can be used to deal with torque in a common way.

Example

use measurements::Torque;

let engine_torque = Torque::from_pound_foot(250.0);
println!("In metric, that's {} Nm", engine_torque.as_newton_metres());

Methods

impl Torque
[src]

Create a new Torque from a floating point value in newton metres

Create a new Torque from a floating point value in newton meters

Create a new Torque from a floating point value in pound-foot (lbf.ft)

Convert this Torque to a floating point value in newton metres

Convert this Torque to a floating point value in newton meters

Convert this Torque to a floating point value in pound-foot (lbf-ft)

Trait Implementations

impl Copy for Torque
[src]

impl Clone for Torque
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Torque
[src]

Formats the value using the given formatter. Read more

impl Measurement for Torque
[src]

Get this quantity in the base units

Create a new quantity from the base units

Return the base unit for this type, as a string. For example "kilograms" Read more

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

Given a list of units and their scale relative to the base unit, select the most appropriate one. Read more

impl Display for Torque
[src]

Formats the value using the given formatter. Read more

impl Add for Torque
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub for Torque
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Div<Torque> for Torque
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<f64> for Torque
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Mul<f64> for Torque
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Torque> for f64
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Eq for Torque
[src]

impl PartialEq for Torque
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Torque
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl From<TorqueEnergy> for Torque
[src]

Performs the conversion.

impl Mul<AngularVelocity> for Torque
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Torque> for AngularVelocity
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Div<Torque> for Power
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<Length> for Torque
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<Force> for Torque
[src]

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations

impl Send for Torque

impl Sync for Torque