Closed wangjiawen2013 closed 1 month ago
It is a good idea to auto check for number types. We could use num-traits
as I did in https://github.com/cpmech/russell
When I started plotpy
, I didn't know about num-traits
... I think this would require some effort to implement now.
This has been improved with num-traits
. See #94
Hi, Now we must check the type
U
to make sure it is a number, is it better to define a number trait to make full use of rust's type system and the type checking ?