Open
Description
#132 added trait bonds with ?Sized
.
Context<dyn HasDisplayHandle>
was mentioned there, but if you try to specify that type anywhere, it errors because Context
and ContextDispatch
do not have D: ?Sized
bounds. So the public API doesn't actually allow that.
Adding those bounds is easy, but is there a way to construct a Context<dyn HasDisplayHandle>
?
If ?Sized
is useful, we should make sure it works and have a test that it continues working on all platforms. Otherwise, it can be removed, which may make other refactoring easier.
CC @notgull
Metadata
Metadata
Assignees
Labels
No labels