Skip to content

Comment on Rust Any part 3: we have upcastsparent

Comments

> the internal representation of a vtable is now guaranteed to have its supertraits laid out in some predictable prefix form to its own methods.

Importantly, note that the specifics of the vtable layout are not guaranteed, only the general property that the layout must be amenable to supporting this.

And for extra context the RFC lays out the current design and future options: https://github.com/rust-lang/rfcs/blob/master/text/3324-dyn-...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.