Comment Comment by simpaticoder What if the valid input for quantity must be greater than 0? A reasonable constraint, I think. The OP's example is contrived to line up with Rust's built-in types, and ignores the general problem. parent simpaticoder 1 year ago