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