1use crate::FormatError; 2 3/// A fixed-size record encoded in the LXDB binary format. 4pub trait BinaryRecord: Sized { 5 const SIZE: usize; 6 7 fn decode(bytes: &[u8]) -> Result<Self, FormatError>; 8}