-
Notifications
You must be signed in to change notification settings - Fork 5
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
Owned<T: ?Sized> #3
Comments
I would like for basedrop to support this, but it's not as simple as relaxing the trait bound. You can work around this limitation for now by using an |
Ah, this explains a lot. I guess I'll work with an |
Owned
is the garbage collected equivalent ofBox
, yet at the same timeT
has to beSized
, while it doesn't have to be forBox
. Sames goes forShared
andArc
.Is this on purpose? Can we relax this trait bound?
I tried sending a
Owned<dyn FnMut()>
over to my audio thread, but couldn't. :)Happy to submit a PR for this, if necessary.
The text was updated successfully, but these errors were encountered: