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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl FromDisk for Transaction
impl FromDisk for Transaction
fn from_bytes(bytes: impl AsRef<[u8]>) -> Self
Source§impl FromDisk for Address
Available on crate features proptest-impl only.
impl FromDisk for Address
Available on crate features
proptest-impl only.