DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Unsizing unsized values

Quality: 8/10 Relevance: 9/10

Summary

A deep dive into unsizing unsized values in Rust using the Any trait, exploring dyn Any downcasting, fat pointers, vtables, and attempts to preserve type information across coercions. The article discusses compiler/runtime pitfalls and experimental approaches, including a hand-rolled vtable and ideas for future language changes.

🚀 Service construit par Johan Denoyer