Module byte_slab::managed_arc_slab [−][src]
Expand description
A convenience type for abstracting over slices or SlabSliceArc
s.
Enums
A ManagedArcSlab
may contain EITHER a borrowed &[u8]
slice,
or a SlabSliceArc
. ManagedArcSlab
s implement the Deref
trait
for access to the underlying data, and implement serde
’s Serialize
and Deserialize
traits, to allow them to be serialized as a slice of
bytes.
A ManagedArcStr
may contain EITHER a borrowed &str
slice,
or a SlabStrArc
. ManagedArcStr
s implement the Deref
trait
for access to the underlying data, and implement serde
’s Serialize
and Deserialize
traits, to allow them to be serialized as a string slice.
Traits
A trait for restoring Managed types to a given SlabArc