Expand description

Wrappers that abstracts references (or pointers) and owned data accesses.

Structs

Wrap a slice and convert to a Vec on serialize. We use a hidden inner enum so the public API can be safe, unless the user uses the unsafe OwnedSlice::from_raw_parts

Wrap a mutable slice and convert to a Vec on serialize

Enums

Wrap a C-style pointer and convert to a Box on serialize

Wrap a C-style mutable pointer and convert to a Box on serialize

Wrap a reference and convert to a Box on serialize

Wrap a mutable reference and convert to a Box on serialize

Wrap a mutable slice and convert to a Vec on serialize. We use a hidden inner enum so the public API can be safe, unless the user uses the unsafe OwnedSliceMut::from_raw_parts_mut

Traits

Trait to convert into an Owned type