Re:Virtual Structs Part 1: Where Rust’s Enum Shines
by Rusky on Tuesday May 05, 2015 @02:22PM
(#9494039)
Trait object pointers are "fat"- they consist of both a pointer to the object and a vtable pointer (much like Go interfaces if you've used those). Other DSTs are similar- pointers to slices consist of both a pointer to the elements and a count.
[ Parent
| on HN ]
There are no comments on this comment yet.