pub trait Encodable {
    // Required method
    fn encode<W: Write + Seek>(
        &self,
        writer: &mut BinaryWriter<W>
    ) -> Result<()>;
}
Expand description

Trait for encoding to binary.

Required Methods§

source

fn encode<W: Write + Seek>(&self, writer: &mut BinaryWriter<W>) -> Result<()>

Encode self into the binary writer.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> Encodable for Option<T>
where T: Encodable + Default,

source§

fn encode<W: Write + Seek>(&self, writer: &mut BinaryWriter<W>) -> Result<()>

Implementors§