Skip to main content

Frequency

Type Alias Frequency 

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

Cycles per second. Dimensionally identical to an angular velocity, since a radian is m/m — the type system cannot and should not pretend otherwise.

Aliased Type§

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

Implementations§

Source§

impl Frequency

Source

pub fn hz(v: f64) -> Frequency

Hertz.

Source

pub fn khz(v: f64) -> Frequency

Kilohertz.

Source

pub fn mhz(v: f64) -> Frequency

Megahertz.

Source

pub fn period(self) -> Time

Period: one over the frequency. Named because 1.0 / f cannot typecheck.

Trait Implementations§

Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Frequency

Source§

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

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Time) -> Dimensionless

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, 0, 0, 0, 0, 0>> for Frequency

Source§

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

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: MomentOfInertia) -> AngularMomentum

Performs the * operation. Read more