[−][src]Trait mhdb::Datum
A datum represents a single item in the database. Any type used as
key or value needs to implement Datum.
Any type implementing Serialize and Deserialize also
implements Datum.
A datum represents a single item in the database. Any type used as
key or value needs to implement Datum.
Any type implementing Serialize and Deserialize also
implements Datum.
fn to_datum(&self) -> Result<Vec<u8>, Box<dyn StdError + Sync + Send>>fn from_datum(b: Vec<u8>) -> Result<Self, Box<dyn StdError + Sync + Send>>impl<T: Serialize + DeserializeOwned> Datum for T[src]