Skip to main content

Volume

Type Alias Volume 

Source
pub type Volume = Qty<3, 0, 0, 0, 0, 0, 0>;
Expand description

Cubic metres.

Aliased Type§

pub struct Volume(/* private fields */);

Implementations§

Source§

impl Volume

Source

pub fn m3(v: f64) -> Volume

Cubic metres.

Source

pub fn cm3(v: f64) -> Volume

Cubic centimetres — the unit a person actually has for a part.

Source

pub fn mm3(v: f64) -> Volume

Cubic millimetres.

Source

pub fn litres(v: f64) -> Volume

Litres.

Trait Implementations§

Source§

impl Div<Qty<1, 0, 0, 0, 0, 0, 0>> for Volume

Source§

type Output = Qty<2, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Length) -> Area

Performs the / operation. Read more
Source§

impl Div<Qty<2, 0, 0, 0, 0, 0, 0>> for Volume

Source§

type Output = Qty<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Area) -> Length

Performs the / operation. Read more
Source§

impl Mul<Qty<-3, 1, 0, 0, 0, 0, 0>> for Volume

Source§

type Output = Qty<0, 1, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Density) -> Mass

Performs the * operation. Read more