Skip to main content

object_layout

Function object_layout 

Source
pub fn object_layout() -> [u8; 3]
Expand description

How an object in the pool is laid out: the size of one entry, and the offsets of its buffer pointer and its length. The pool is a vector of vectors the code indexes directly, and Rust promises no layout for a vector, so the build measures it and the VM checks the build’s answer against its own before it runs any of the code.