You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments