heim_common::units::ratio

Trait Conversion

Source
pub trait Conversion<V>: Unit + Conversion<V, T = <V as Conversion<V>>::T>
where V: Conversion<V>,
{ }
Expand description

Trait to identify units which have a conversion factor for the Quantity. See Conversion<V>.

§Generic Parameters

  • V: Underlying storage type trait is implemented for.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Conversion<f32> for basis_point

Source§

impl Conversion<f32> for part_per_billion

Source§

impl Conversion<f32> for part_per_hundred

Source§

impl Conversion<f32> for part_per_million

Source§

impl Conversion<f32> for part_per_quadrillion

Source§

impl Conversion<f32> for part_per_ten_thousand

Source§

impl Conversion<f32> for part_per_thousand

Source§

impl Conversion<f32> for part_per_trillion

Source§

impl Conversion<f32> for per_mille

Source§

impl Conversion<f32> for percent

Source§

impl Conversion<f32> for ratio

Source§

impl Conversion<f64> for basis_point

Source§

impl Conversion<f64> for part_per_billion

Source§

impl Conversion<f64> for part_per_hundred

Source§

impl Conversion<f64> for part_per_million

Source§

impl Conversion<f64> for part_per_quadrillion

Source§

impl Conversion<f64> for part_per_ten_thousand

Source§

impl Conversion<f64> for part_per_thousand

Source§

impl Conversion<f64> for part_per_trillion

Source§

impl Conversion<f64> for per_mille

Source§

impl Conversion<f64> for percent

Source§

impl Conversion<f64> for ratio

Source§

impl Conversion<u64> for basis_point

Source§

impl Conversion<u64> for part_per_billion

Source§

impl Conversion<u64> for part_per_hundred

Source§

impl Conversion<u64> for part_per_million

Source§

impl Conversion<u64> for part_per_quadrillion

Source§

impl Conversion<u64> for part_per_ten_thousand

Source§

impl Conversion<u64> for part_per_thousand

Source§

impl Conversion<u64> for part_per_trillion

Source§

impl Conversion<u64> for per_mille

Source§

impl Conversion<u64> for percent

Source§

impl Conversion<u64> for ratio