EncodeBinary

Trait EncodeBinary 

Source
pub trait EncodeBinary {
    type Error;

    // Required method
    fn encode_binary(&self) -> Result<Vec<u8>, Self::Error>;
}
Expand description

Minimal encode trait for binary format value types.

Required Associated Types§

Source

type Error

Error type used by the format.

Required Methods§

Source

fn encode_binary(&self) -> Result<Vec<u8>, Self::Error>

Encodes a value into an owned byte buffer.

Implementors§