Authoritative docs for vtable layout

Hey all,

I was wondering if there is a current authoritative piece of documentation that I can refer to to understand the layout of a vtable for a trait object. I have seen tons of posts that show the vtable layout like this and this seems correct judging by personal experiments. However, I was wondering where I could find a primary source, maybe even in code. The closest thing I could find was this PR and while I kinda see how that relates it does not quite seem to be what I am interested in.

And yes, I know the vtable layout is a fickle thing and can change at any moment. I'd just be interested how it looks right now... :smiley:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.