2 ms·
The /r/rust thread is worth reading: https://www.reddit.com/r/rust/comments/a68ydk/storing_unboxed_trait_objects_in_stable_rust/ https://www.reddit.com/r/rust/c
by steveklabnik 8y ago
The /r/rust thread is worth reading: https://www.reddit.com/r/rust/comments/a68ydk/storing_unboxed_trait_objects_in_stable_rust/ https://www.reddit.com/r/rust/comments/a68ydk/storing_unboxe...
TL;DR this relies on unstable internal details; there’s a proposal to add an API to let you do this kind of thing but it hasn’t been accepted yet.