We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Some values, such as flex_grow and flex_shrink, must not be negative, but are stored as a simple f32.
flex_grow
flex_shrink
f32
Documentation is a poor way to enforce this sort of constraint in Rust.
Use a non-negative float wrapper type. We can either hand-write this. or reuse an existing crate's work if something suitable exists.
Noticed due to #206.
We should keep an eye out for other values that are similarly bounded as part of these changes.
The text was updated successfully, but these errors were encountered:
Possibly shouldn't have listed this ticket in the PR description. This is NOT fixed by #269
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What problem does this solve or what need does it fill?
Some values, such as
flex_grow
andflex_shrink
, must not be negative, but are stored as a simplef32
.Documentation is a poor way to enforce this sort of constraint in Rust.
What solution would you like?
Use a non-negative float wrapper type. We can either hand-write this. or reuse an existing crate's work if something suitable exists.
Additional context
Noticed due to #206.
We should keep an eye out for other values that are similarly bounded as part of these changes.
The text was updated successfully, but these errors were encountered: