Function to_shmem::to_shmem_slice

source ·
pub unsafe fn to_shmem_slice<'a, T, I>(
    src: I,
    builder: &mut SharedMemoryBuilder
) -> Result<*mut [T], String>
where T: 'a + ToShmem, I: ExactSizeIterator<Item = &'a T>,
Expand description

Writes all the items in src into a slice in the shared memory buffer and returns a pointer to the slice.