Module managed_arc_slab

Module managed_arc_slab 

Source
Expand description

A convenience type for abstracting over slices or SlabSliceArcs.

Enums§

ManagedArcSlab
A ManagedArcSlab may contain EITHER a borrowed &[u8] slice, or a SlabSliceArc. ManagedArcSlabs 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.
ManagedArcStr
A ManagedArcStr may contain EITHER a borrowed &str slice, or a SlabStrArc. ManagedArcStrs 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§

Reroot
A trait for restoring Managed types to a given SlabArc