pub trait IntoDisk {
type Bytes: AsRef<[u8]>;
// Required method
fn as_bytes(&self) -> Self::Bytes;
}
Expand description
Helper type for writing types to disk as raw bytes. Also used to convert key types to raw bytes for disk lookups.
pub trait IntoDisk {
type Bytes: AsRef<[u8]>;
// Required method
fn as_bytes(&self) -> Self::Bytes;
}
Helper type for writing types to disk as raw bytes. Also used to convert key types to raw bytes for disk lookups.