pub trait FromDisk: Sized {
// Required method
fn from_bytes(bytes: impl AsRef<[u8]>) -> Self;
}
Expand description
Helper type for reading types from disk as raw bytes.
Required Methods§
Object Safety§
This trait is not object safe.
pub trait FromDisk: Sized {
// Required method
fn from_bytes(bytes: impl AsRef<[u8]>) -> Self;
}
Helper type for reading types from disk as raw bytes.