pub trait WritableType {
// Required methods
fn write(&self, writer: &mut dyn Write) -> Result<()>;
fn size(&self) -> usize;
}Expand description
Indicates that a type could be used as cache key/value. Used alongside ReadableType
pub trait WritableType {
// Required methods
fn write(&self, writer: &mut dyn Write) -> Result<()>;
fn size(&self) -> usize;
}Indicates that a type could be used as cache key/value. Used alongside ReadableType