Expand description
Trait for cloning data into a shared memory buffer.
This module contains the SharedMemoryBuilder type and ToShmem trait.
We put them here (and not in style_traits) so that we can derive ToShmem from the selectors and style crates.
Macros§
Structs§
- A builder object that transforms and copies values into a fixed size buffer.
Traits§
- A type that can be copied into a SharedMemoryBuilder.
Functions§
- Rounds up
size
so that the following address will satisfyalign
. - Amount of padding needed after
size
bytes to ensure that the following address will satisfyalign
. - Writes all the items in
src
into a slice in the shared memory buffer and returns a pointer to the slice. - Converts all the items in
src
into shared memory form, writes them into the specified buffer, and returns a pointer to the slice.
Type Aliases§
- Result type for ToShmem::to_shmem.