pub trait SerializedDatabase {
    type Error: Debug;

    fn size(&self) -> StdResult<usize, Self::Error>;
    fn info(&self) -> StdResult<String, Self::Error>;
    fn deserialize<M>(&self) -> StdResult<Database<M>, Self::Error>;
Expand description

A serialized database

Required Associated Types

The type of error if it fails in a normal fashion.

Required Methods

Reporting the size that would be required by a database if it were deserialized.

Providing information about a serialized database.

Reconstruct a pattern database from a stream of bytes previously generated by Database::serialize().