-
Notifications
You must be signed in to change notification settings - Fork 108
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
Change width
and height
of Size
to Option<T>
instead of T
#154
Comments
This seems like about the right approach. In general it really seems like we're typically storing options here. |
I'm tackling this now. |
First I thought we'd need so solve #148 before this, then I thought this needed to come first. I supsect they both need to be done at the same time for the whole system to work, but I'll keep tinkering with it tomorrow morning :) |
This doesn't won't work now we're also using |
👍 It seemed to make sense at the time :) |
What problem does this solve or what need does it fill?
The
geometry::Size<T>
is currently defined asWhile digging through the code in relation to #144 and #148 I've started wondering if we should change the definition of
Size
to the following:The width and height fields need to be independently defined or not, which means that replacing everything with
some_field: Option<Size>
will not cover all use-cases throughout the code.I'm not yet able to see the full picture how everything fits together once we:
Dimension::Undefined
->Option<Dimension>
Number::undefined
->Option<f32>
but it seems it is a must for this to work (?)
What alternative(s) have you considered?
Leave it as is, but I expect it to change in some way or another.
Are there alternative designs we can explore?
The text was updated successfully, but these errors were encountered: