quantities 0.10.0

Unit-safe computations with quantities.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: expected `struct`

         = help: Use `#[quantity]
       ...
       struct <ident> {}`.

  --> tests/ui/item_not_struct.rs:12:1
   |
12 | / /// Foo, a completely useless quantity
13 | | #[quantity]
14 | | #[ref_unit(A, "a", MEGA)]
15 | | #[unit(B, "b", 0.4)]
...  |
18 | |     baz,
19 | | }
   | |_^