Skip to main content

Dimensionless

Type Alias Dimensionless 

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

A pure ratio: reflectance, duty cycle, refractive index, Strehl.

Aliased Type§

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

Implementations§

Source§

impl Dimensionless

Source

pub fn ratio(v: f64) -> Dimensionless

A bare ratio, for the one case where a number genuinely has no dimension: a reflectance, a duty cycle, a refractive index.

Trait Implementations§

Source§

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

Source§

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

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

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

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more