-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support ThinArc for other dynamically sized types #10
Comments
Even if we can obtain that, the layout of that vtable can still change though. So maybe just generate an explicit vtable for the types you care? |
It probably can be done with the new (unstable) pointer metadata APIs |
But ASAIK it doesn't provide any API for retrieving the vtable and call one of these methods. |
you can reconstruct the trait object as an |
Sorry I misunderstood the topic. If you are talking about passing the pointer to C/C++ then get it back, I think |
A ThinArcStr would be pretty easy to support (would just wrap a
ThinArc<H, u8>
-- you can already do this by usingtriomphe
).The use case I care more about would be a way of having a 1-pointer Arc (pretty useful for FFI stuff)... but I'm not sure how possible this is though, given that we don't have a way to get a trait object vtable pointer...
The text was updated successfully, but these errors were encountered: