[−][src]Trait fts_units::quantity::CastAmount
Helpers for casting T
in QuantityT<T,U>
.
let m = Meters::<f32>::new(7.73); let i : Meters<i32> = m.cast_into(); assert_eq!(i.amount(), 7);
Required methods
Loading content...Implementors
impl<T1, T2, U> CastAmount<QuantityT<T2, U>> for QuantityT<T1, U> where
T1: Amount + NumCast,
T2: Amount + NumCast,
[src]
T1: Amount + NumCast,
T2: Amount + NumCast,