heim_common::units::time

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 attosecond

Source§

impl Conversion<f32> for centisecond

Source§

impl Conversion<f32> for day

Source§

impl Conversion<f32> for day_sidereal

Source§

impl Conversion<f32> for decasecond

Source§

impl Conversion<f32> for decisecond

Source§

impl Conversion<f32> for exasecond

Source§

impl Conversion<f32> for femtosecond

Source§

impl Conversion<f32> for gigasecond

Source§

impl Conversion<f32> for hectosecond

Source§

impl Conversion<f32> for hour

Source§

impl Conversion<f32> for hour_sidereal

Source§

impl Conversion<f32> for kilosecond

Source§

impl Conversion<f32> for megasecond

Source§

impl Conversion<f32> for microsecond

Source§

impl Conversion<f32> for millisecond

Source§

impl Conversion<f32> for minute

Source§

impl Conversion<f32> for nanosecond

Source§

impl Conversion<f32> for petasecond

Source§

impl Conversion<f32> for picosecond

Source§

impl Conversion<f32> for second

Source§

impl Conversion<f32> for second_sidereal

Source§

impl Conversion<f32> for shake

Source§

impl Conversion<f32> for terasecond

Source§

impl Conversion<f32> for year

Source§

impl Conversion<f32> for year_sidereal

Source§

impl Conversion<f32> for year_tropical

Source§

impl Conversion<f32> for yoctosecond

Source§

impl Conversion<f32> for yottasecond

Source§

impl Conversion<f32> for zeptosecond

Source§

impl Conversion<f32> for zettasecond

Source§

impl Conversion<f64> for attosecond

Source§

impl Conversion<f64> for centisecond

Source§

impl Conversion<f64> for day

Source§

impl Conversion<f64> for day_sidereal

Source§

impl Conversion<f64> for decasecond

Source§

impl Conversion<f64> for decisecond

Source§

impl Conversion<f64> for exasecond

Source§

impl Conversion<f64> for femtosecond

Source§

impl Conversion<f64> for gigasecond

Source§

impl Conversion<f64> for hectosecond

Source§

impl Conversion<f64> for hour

Source§

impl Conversion<f64> for hour_sidereal

Source§

impl Conversion<f64> for kilosecond

Source§

impl Conversion<f64> for megasecond

Source§

impl Conversion<f64> for microsecond

Source§

impl Conversion<f64> for millisecond

Source§

impl Conversion<f64> for minute

Source§

impl Conversion<f64> for nanosecond

Source§

impl Conversion<f64> for petasecond

Source§

impl Conversion<f64> for picosecond

Source§

impl Conversion<f64> for second

Source§

impl Conversion<f64> for second_sidereal

Source§

impl Conversion<f64> for shake

Source§

impl Conversion<f64> for terasecond

Source§

impl Conversion<f64> for year

Source§

impl Conversion<f64> for year_sidereal

Source§

impl Conversion<f64> for year_tropical

Source§

impl Conversion<f64> for yoctosecond

Source§

impl Conversion<f64> for yottasecond

Source§

impl Conversion<f64> for zeptosecond

Source§

impl Conversion<f64> for zettasecond

Source§

impl Conversion<u64> for attosecond

Source§

impl Conversion<u64> for centisecond

Source§

impl Conversion<u64> for day

Source§

impl Conversion<u64> for day_sidereal

Source§

impl Conversion<u64> for decasecond

Source§

impl Conversion<u64> for decisecond

Source§

impl Conversion<u64> for exasecond

Source§

impl Conversion<u64> for femtosecond

Source§

impl Conversion<u64> for gigasecond

Source§

impl Conversion<u64> for hectosecond

Source§

impl Conversion<u64> for hour

Source§

impl Conversion<u64> for hour_sidereal

Source§

impl Conversion<u64> for kilosecond

Source§

impl Conversion<u64> for megasecond

Source§

impl Conversion<u64> for microsecond

Source§

impl Conversion<u64> for millisecond

Source§

impl Conversion<u64> for minute

Source§

impl Conversion<u64> for nanosecond

Source§

impl Conversion<u64> for petasecond

Source§

impl Conversion<u64> for picosecond

Source§

impl Conversion<u64> for second

Source§

impl Conversion<u64> for second_sidereal

Source§

impl Conversion<u64> for shake

Source§

impl Conversion<u64> for terasecond

Source§

impl Conversion<u64> for year

Source§

impl Conversion<u64> for year_sidereal

Source§

impl Conversion<u64> for year_tropical

Source§

impl Conversion<u64> for yoctosecond

Source§

impl Conversion<u64> for yottasecond

Source§

impl Conversion<u64> for zeptosecond

Source§

impl Conversion<u64> for zettasecond