Skip to main content

BinaryRecord

Trait BinaryRecord 

Source
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§

Source

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".

Implementors§

Source§

impl BinaryRecord for AdjacencyRecord

Source§

const SIZE: usize = AdjacencyRecord::SIZE

Source§

impl BinaryRecord for RelationRecord

Source§

const SIZE: usize = RelationRecord::SIZE

Source§

impl BinaryRecord for TokenRecord

Source§

const SIZE: usize = TokenRecord::SIZE