Closed zmrocze closed 11 months ago
This is one of uom
's warts right now. The best way at the current time is to skip the new
constructor and create the struct directly:
let position_deser = Length { dimension: PhantomData, units: PhantomData, value: position_ser, };
Closing this specific issue as the problem is covered elsewhere.
Hey, I'd like to serialize values to floats, casually:
and now to deserialize I'd just need to know the base unit for the given quantity:
would it be possible to define such a constant? or is there another way?