pub fn mmap_vec_from_obj(obj: Object<'_>) -> Result<MmapVec>
Expand description

Creates a new MmapVec from serializing the specified obj.

The returned MmapVec will contain the serialized version of obj and is sized appropriately to the exact size of the object serialized.