-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changed number input's bounds to an inclusive range #242
Conversation
I was thinking about it and theres a lot of small changes I want aswell |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like you to change this to use RangeBounds So it can use any of the Range types like
..
0..
0..100
..100
0..=100
I would also like you to add an additional trait requirement. https://docs.rs/num-traits/latest/num_traits/bounds/trait.Bounded.html
This will allow use to get a min and a max for all the Generics. Which for the .. style bounds we can then set the minimal and maximum numbers to the Unbounded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks much better. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
No description provided.