Replies: 1 comment
-
The type for foo is wrong. It is of type let foo: Ratio = Ratio::new::<percent>(0.0);
let foo = Ratio::new::<percent>(0.0); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This example is contrived, but in structs I need to name the actual type and cant rely on type auto deduction. The full type name is of course not very readable (Quanitity<dyn Dimension <... etc), and so I assume there is some clean way to refer to it?
(either the new call is wrong or uom::ratio::percent is the wrong type)
Beta Was this translation helpful? Give feedback.
All reactions