add() returns a new `Length` struct containing the sum.
(self, rhs: Length<Unit>)
| 20 | |
| 21 | // add() returns a new `Length` struct containing the sum. |
| 22 | fn add(self, rhs: Length<Unit>) -> Length<Unit> { |
| 23 | // `+` calls the `Add` implementation for `f64`. |
| 24 | Length(self.0 + rhs.0, PhantomData) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | fn main() { |