Module byte_slab::managed_arc_slab[][src]

Expand description

A convenience type for abstracting over slices or SlabSliceArcs.

Enums

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.

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

A trait for restoring Managed types to a given SlabArc