Struct measurements::force::Force [] [src]

pub struct Force { /* fields omitted */ }

The Force struct can be used to deal with force in a common way.

#Example

use measurements::Force;
use measurements::Mass;
use measurements::Acceleration;

let metric_ton = Mass::from_metric_tons(1.0);
let gravity = Acceleration::from_meters_per_second_per_second(9.81);
let force: Force = metric_ton * gravity; // F=ma
println!(
    "One metric ton exerts a force of {} due to gravity",
    force);

Methods

impl Force
[src]

[src]

Create a Force from a floating point value in Newtons

[src]

Create a Force from a floating point value in Micronewtons

[src]

Create a Force from a floating point value in Millinewtons

[src]

Create a Force from a floating point value in pounds

[src]

Create a Force from a floating point value in poundals

[src]

Create a Force from a floating point value in kiloponds

[src]

Create a Force from a floating point value in Dynes

[src]

Convert this Force into a floating point value in Micronewtons

[src]

Convert this Force into a floating point value in Milliewtons

[src]

Convert this Force into a floating point value in Newtons

[src]

Convert this Force into a floating point value in pound-force (lb.f)

[src]

Convert this Force into a floating point value in poundals

[src]

Convert this Force into a floating point value in kiloponds

[src]

Convert this Force into a floating point value in dynes

Trait Implementations

impl Copy for Force
[src]

impl Clone for Force
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Force
[src]

[src]

Formats the value using the given formatter. Read more

impl Measurement for Force
[src]

[src]

Get this quantity in the base units

[src]

Create a new quantity from the base units

[src]

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

[src]

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

[src]

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

impl Display for Force
[src]

[src]

Formats the value using the given formatter. Read more

impl Add for Force
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub for Force
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Div<Force> for Force
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<f64> for Force
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Mul<f64> for Force
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Force> for f64
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Eq for Force
[src]

impl PartialEq for Force
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialOrd for Force
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl Div<Acceleration> for Force
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<Mass> for Force
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<Area> for Force
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<Pressure> for Force
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Mul<Force> for Speed
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Speed> for Force
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<Force> for Power
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Mul<Force> for Length
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Length> for Force
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<Force> for TorqueEnergy
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<Force> for Torque
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<Force> for Energy
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

Auto Trait Implementations

impl Send for Force

impl Sync for Force