-
Notifications
You must be signed in to change notification settings - Fork 52
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
More flexible X
/"extra" type handling
#163
Conversation
5f5d949
to
9910be9
Compare
9910be9
to
3852109
Compare
@aweinstock314 with this version I'd be comfortable releasing as a non-breaking bump, does that work for you? I'm not against breaking changes, they'll just take a little more thought as I want to minimise the number of different breaking versions so want to bundle up some other breakers too. |
ffc9d80
to
8d0b230
Compare
Yes, this version suffices to make hecrj/wgpu_glyph#96 work ( Should I leave #162 open, as the breaking changes version, or close it? |
Thanks @aweinstock314 I opened #164 to help remember to fix the I wonder if there's a different & cleaner way to do the |
It's reasonably straightforward to extend in a single-inheritance way with the current approach, via adding the parent struct as a field and implementing Making use of deref coercion doesn't support multiple inheritance though (e.g. with the classic diamond inheritance example where
|
Update: Removing |
This is a less breaking version of #162. Mainly rolling back the
Section::default
changes and addingSection::builder
to help when using a customX
. This avoids the breakage that theSection::default
change would have caused.It's still a little breaking with the
Text::new
changes. However, I'm willing to try releasing that as a non-breaking bump as I suspect this won't break usage in the wild.Closes #162