Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This pull request adds the `INFINITY` constant to `Size`. ```rust const INFINITY: Size = Size::new(f64::INFINITY, f64::INFINITY); ``` I found myself writing a lot of infinite sizes manually to represent "no constraint", and thought it would be cleaner to have it as an associated constant instead. # Potential questions Is there any other constants we might want for `Size`? `INFINITY` is the only one I personally needed, but maybe there are others.
- Loading branch information