pub trait BitSerializable: Clone {
    // Required methods
    fn encode(&self, writer: &mut impl WriteBuffer) -> Result<()>;
    fn decode(reader: &mut impl ReadBuffer) -> Result<Self>
       where Self: Sized;
}
Expand description

Something that can be serialized bit by bit

Required Methods§

source

fn encode(&self, writer: &mut impl WriteBuffer) -> Result<()>

source

fn decode(reader: &mut impl ReadBuffer) -> Result<Self>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§