Skip to main content

Length

Type Alias Length 

Source
pub type Length = Qty<1, 0, 0, 0, 0, 0, 0>;
Expand description

Metres.

Aliased Type§

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

Implementations§

Source§

impl Length

Source

pub fn m(v: f64) -> Length

Metres.

Source

pub fn mm(v: f64) -> Length

Millimetres.

Source

pub fn um(v: f64) -> Length

Micrometres.

Source

pub fn nm(v: f64) -> Length

Nanometres. The wavelength unit, and why every Spectrum field is named _nm.

Source

pub fn in_mm(self) -> f64

As millimetres.

Source

pub fn in_um(self) -> f64

As micrometres.

Source

pub fn in_nm(self) -> f64

As nanometres.

Trait Implementations§

Source§

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

Source§

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

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Time) -> Velocity

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, -1, 0, 0, 0, 0>> for Length

Source§

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

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Velocity) -> Time

Performs the / operation. Read more
Source§

impl Mul for Length

Source§

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

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, -2, 0, 0, 0, 0>> for Length

Source§

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

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Stiffness) -> Force

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 1, -2, 0, 0, 0, 0>> for Length

Source§

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

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Force) -> Energy

Performs the * operation. Read more
Source§

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

Source§

type Output = Qty<2, 1, -3, -1, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: ElectricField) -> Voltage

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 0, 0, 0, 0, 0, 0>> for Length

Source§

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

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Area) -> Volume

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, -3, -2, 0, 0, 0>> for Length

Source§

type Output = Qty<3, 1, -3, -2, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Resistance) -> Resistivity

Performs the * operation. Read more