Skip to main content

Power

Type Alias Power 

Source
pub type Power = Qty<2, 1, -3, 0, 0, 0, 0>;
Expand description

Watts.

Aliased Type§

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

Implementations§

Source§

impl Power

Source

pub fn w(v: f64) -> Power

Watts.

Source

pub fn mw(v: f64) -> Power

Milliwatts.

Source

pub fn uw(v: f64) -> Power

Microwatts.

Source

pub fn in_mw(self) -> f64

As milliwatts.

Trait Implementations§

Source§

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

Source§

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

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Temperature) -> Conductance

Performs the / operation. Read more
Source§

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

Source§

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

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Current) -> Voltage

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, -3, 0, 0, 0, 0>> for Power

Source§

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

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

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

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, -3, 0, -1, 0, 0>> for Power

Source§

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

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Conductance) -> Temperature

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, -3, -1, 0, 0, 0>> for Power

Source§

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

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Voltage) -> Current

Performs the / operation. Read more
Source§

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

Source§

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

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more