pub trait MassComparable<A, B> {
    // Required method
    fn within(&self, a: &A, b: &B) -> bool;
}
Expand description

Check if two values are within the specified tolerance from each other.

Required Methods§

source

fn within(&self, a: &A, b: &B) -> bool

Check if two values are within the specified tolerance from each other.

Implementors§

source§

impl MassComparable<Multi<Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>>, Multi<Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>>> for Tolerance

source§

impl MassComparable<Multi<Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>>, Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>> for Tolerance

source§

impl MassComparable<Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>, Multi<Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>>> for Tolerance

source§

impl MassComparable<Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>, Quantity<dyn Dimension<M = PInt<UInt<UTerm, B1>>, T = Z0, Kind = dyn Kind, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>> for Tolerance