|
|
|
|
|
by jlokier
2244 days ago
|
|
If it's a program-visible kind of box, yes that would be a problem. But if you're generating polymorphic dispatch code at a lower level than expressible in Rust itself, there is no reason why hidden box types cannot be used to simulate unboxed types. That's just a memory representation difference. A bit like the way V8 creates specialised types for JavaScript objects at run time, but it's invisible to JavaScript except for speed. |
|