|
|
Log in / Subscribe / Register

Pointee not on the heap?

Pointee not on the heap?

Posted Apr 23, 2026 14:19 UTC (Thu) by daroc (editor, #160859)
In reply to: Pointee not on the heap? by pbonzini
Parent article: One Sized trait does not fit all

True! I guess the precise way of saying what's going on with Pointee is "it can't be used in any place that requires Rust code to have knowledge of its size, meaning that it can only be stored as the last element of (heap-allocated) Rust structures and must always be interacted with via a pointer of some kind, even if that is a fake 'pointer' invented by C code", but that doesn't really fit in the little summary table. So given the surrounding article for context, I'm comfortable summarizing those rules as "not on the stack". :)


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds