Struct measurements::area::Area [] [src]

pub struct Area { /* fields omitted */ }

The Area struct can be used to deal with areas in a common way. Common metric and imperial units are supported.

Example

use measurements::Area;

let football_field = Area::from_square_meters(7140.0);
let acres = football_field.as_acres();
println!("There are {} acres in a football field.", acres);

Methods

impl Area
[src]

[src]

Create new area from floating point value in Square Meters

[src]

Create new area from floating point value in Square Metres

[src]

Create new area from floating point value in Square Nanometers

[src]

Create new area from floating point value in Square Nanometres

[src]

Create new area from floating point value in Square Micrometers

[src]

Create new area from floating point value in Square Micrometres

[src]

Create new area from floating point value in Square Millimeters

[src]

Create new area from floating point value in Square Millimetres

[src]

Create new area from floating point value in Square Centimeters

[src]

Create new area from floating point value in Square Centimetres

[src]

Create new area from floating point value in Square Decimeters

[src]

Create new area from floating point value in Square Decimetres

[src]

Create new area from floating point value in Square Hectometers

[src]

Create new area from floating point value in Square Hectometres

[src]

Create new area from floating point value in Hectares

[src]

Create new area from floating point value in Square Kilometers

[src]

Create new area from floating point value in Square Kilometres

[src]

Create new area from floating point value in Square Inches

[src]

Create new area from floating point value in Square Feet

[src]

Create new area from floating point value in Square Yards

[src]

Create new area from floating point value in Acres

[src]

Create new area from floating point value in Square Miles

[src]

Convert this Area to a floating point value in Square Nanometers

[src]

Convert this Area to a floating point value in Square Nanometres

[src]

Convert this Area to a floating point value in Square Micrometers

[src]

Convert this Area to a floating point value in Square Micrometres

[src]

Convert this Area to a floating point value in Square Millimeters

[src]

Convert this Area to a floating point value in Square Millimetres

[src]

Convert this Area to a floating point value in Square Centimeters

[src]

Convert this Area to a floating point value in Square Centimetres

[src]

Convert this Area to a floating point value in Square Meters

[src]

Convert this Area to a floating point value in Square Metres

[src]

Convert this Area to a floating point value in Square Decimeters

[src]

Convert this Area to a floating point value in Square Decimetres

[src]

Convert this Area to a floating point value in Square Hectometers

[src]

Convert this Area to a floating point value in Square Hectometres

[src]

Convert this Area to a floating point value in Hectares

[src]

Convert this Area to a floating point value in Square Kilometers

[src]

Convert this Area to a floating point value in Square Kilometres

[src]

Convert this Area to a floating point value in Square Inches

[src]

Convert this Area to a floating point value in Square Feet

[src]

Convert this Area to a floating point value in Square Yards

[src]

Convert this Area to a floating point value in Acres

[src]

Convert this Area to a floating point value in Square Miles

Trait Implementations

impl Copy for Area
[src]

impl Clone for Area
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Area
[src]

[src]

Formats the value using the given formatter. Read more

impl Measurement for Area
[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 Area
[src]

[src]

Formats the value using the given formatter. Read more

impl Add for Area
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub for Area
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Div<Area> for Area
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<f64> for Area
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Mul<f64> for Area
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Area> for f64
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Eq for Area
[src]

impl PartialEq for Area
[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 Area
[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<Length> for Area
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Mul<Pressure> for Area
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Area> for Pressure
[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 Mul<Length> for Area
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Area> for Length
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<Area> for Volume
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

Auto Trait Implementations

impl Send for Area

impl Sync for Area