Module mycroft_support::storage [] [src]

storage provides utilities for keeping storing and retrieving data, notably Data and Tuples Both are in-memory stores at the moment, but this module is where future disk stores will live as well.

Re-exports

pub use self::tuple::MergeRef;
pub use self::tuple::Provenance;
pub use self::tuple::Tuples;
pub use self::data::Data;

Modules

data

data provides a facility to hold typed data in a deduped fashion, identified by a usize key. The only requirements are that the data be Hash and PartialEq. At the moment, this is done as an in-memory store.

tuple

tuples contains structures related to an in-memory tuple-store for usize values. It is intended to be used in conjunction with storage::Data to provid arbitrary-typed tuple functionality.