Crate shawshank [] [src]

Prison is an efficient, generic internment structure.

Macros

custom_intern_id

Facilitates defining tuple structs that may be used as custom IDs.

Structs

Builder

Flexible builder for Prison.

Prison

An efficient, generic internment structure.

Solitary

Specialization of Prison where O::Target: StableAddress.

Enums

Error

Errors that may occur when using a Prison.

Traits

Map

The interface for the key-value map internal to a Prison.

Functions

builder

Create a Builder where the ID is usize.

byte_prison

Create a Prison for Vec<u8> with a HashMap and an ID of usize.

byte_solitary

Create a Solitary for Arc<Vec<u8>> with a HashMap and an ID of usize.

string_prison

Create a Prison for String with a HashMap and an ID of usize.

string_solitary

Create a Solitary for Arc<String> with a HashMap and an ID of usize.