Trait rustfst::prelude::SerializeBinary

source ·
pub trait SerializeBinary: Sized {
    // Required methods
    fn parse_binary(i: &[u8]) -> IResult<&[u8], Self, NomCustomError<&[u8]>>;
    fn write_binary<WB: Write>(&self, writer: &mut WB) -> Result<()>;
}

Required Methods§

source

fn parse_binary(i: &[u8]) -> IResult<&[u8], Self, NomCustomError<&[u8]>>

Parse a struct of type Self from a binary buffer.

source

fn write_binary<WB: Write>(&self, writer: &mut WB) -> Result<()>

Writes a struct to a writable buffer.

Object Safety§

This trait is not object safe.

Implementors§