Rust generics are nice

I just did the Triangle exercise in Rust on Exercism. First I did it as written so that it only handled 64-bit integers. Then I changed it for the 'extra credit' so that it also handled floating-point numbers or whatever else. I'm not suggesting this is the best way to do this, but I was pleased that all of the changes were in the first few lines. Here is an ediff with the non-generic on the left…