Pointee not on the heap?
Pointee not on the heap?
Posted Apr 23, 2026 19:07 UTC (Thu) by pbonzini (subscriber, #60935)In reply to: Pointee not on the heap? by tialaramex
Parent article: One Sized trait does not fit all
I *think* the difference is that you can have a &Pointee that points to invalid memory because it's guaranteed that Rust code will never actually access the memory. This can only happen by passing it back to another language via FFI, and whoever creates the &Pointee ensures that whoever receives it won't produce undefined behavior.
