Generic MAX/MIN for primitive types

I think we need trait methods that allow us to get the max/min values of most built-in primitives. This would allow us to do things like f64::MAX, i32::MIN, etc in generics instead of having to repeat code across all the primitive types.

My use case is a simulator that generates random values across the various data types

1 Like
2 Likes