pub trait BinaryRecord: Sized {
const SIZE: usize;
// Required method
fn decode(bytes: &[u8]) -> Result<Self, FormatError>;
}Expand description
A fixed-size record encoded in the LXDB binary format.
Required Associated Constants§
Required Methods§
fn decode(bytes: &[u8]) -> Result<Self, FormatError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".