Skip to main content

object

Function object 

Source
pub fn object(
    out: &mut CodeValue,
    keys: &[&'static CStr],
    values: &mut SlotBuffer,
)
Expand description

Write an Object into out from parallel keys and values (a SlotBuffer built the same way [array] expects). keys must outlive nothing in particular — code_object copies the pointers, and C-string field names are expected to be 'static (string literals), matching code_abi.h’s own “key pointers are read-only data” note.