Quantity

Trait Quantity 

Source
pub trait Quantity {
    // Required method
    fn f64(&self) -> f64;
}
Expand description

Must be implemented by all quantity types.

Required Methods§

Source

fn f64(&self) -> f64

Implementors§

Source§

impl Quantity for Scalar

Source§

impl<A> Quantity for Angle<A>
where A: AngleUnit,

Source§

impl<A> Quantity for Area<A>
where A: LengthUnit,

Source§

impl<A> Quantity for Force<A>
where A: ForceUnit,

Source§

impl<A> Quantity for Length<A>
where A: LengthUnit,

Source§

impl<A> Quantity for Mass<A>
where A: MassUnit,

Source§

impl<A> Quantity for Pressure<A>
where A: PressureUnit,

Source§

impl<A> Quantity for Time<A>
where A: TimeUnit,

Source§

impl<A> Quantity for Volume<A>
where A: LengthUnit,

Source§

impl<A, B> Quantity for Acceleration<A, B>
where A: LengthUnit, B: TimeUnit,

Source§

impl<A, B> Quantity for AngularAcceleration<A, B>
where A: AngleUnit, B: TimeUnit,

Source§

impl<A, B> Quantity for AngularVelocity<A, B>
where A: AngleUnit, B: TimeUnit,

Source§

impl<A, B> Quantity for Density<A, B>
where A: MassUnit, B: LengthUnit,

Source§

impl<A, B> Quantity for MassRate<A, B>
where A: MassUnit, B: TimeUnit,

Source§

impl<A, B> Quantity for RotationalInertia<A, B>
where A: MassUnit, B: LengthUnit,

Source§

impl<A, B> Quantity for Torque<A, B>
where A: ForceUnit, B: LengthUnit,

Source§

impl<A, B> Quantity for Velocity<A, B>
where A: LengthUnit, B: TimeUnit,

Source§

impl<A, B> Quantity for VelocitySquared<A, B>
where A: LengthUnit, B: TimeUnit,