-
Notifications
You must be signed in to change notification settings - Fork 1
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
Garbage collected trace objects (dyn Trace
)
#15
Comments
Oh man I really don't want to parameterize I've played around with having a separate set of I'm starting to think maybe I should go closer to the approach you suggested and modify Kind of just throwing out random suggestions here. This project is still a little experimental 😄 😉 This is related to #16 because both arrays and trait objects are |
This works because `str` is `!Sized` and the blanket impl for `&T` has an implicit bound `T: Trace`. TODO: Proper support for unsized types (#15)
The new Pointee type and the nightly I'm hesitant to refactor the API design to depend so heavily on a nightly feature, however that may be the only way I can reasonably implement this feature. In practice, however, |
dyn Trace
)
The current
Trace
trait is not object-safe, so it can’t be used with trait objects:Could it be made object-safe by turning the associated constants into functions and moving the
V: GcVisitor
type parameter ofTrace::visit<V>
up toTrace<V>::visit
?The text was updated successfully, but these errors were encountered: