pub trait EncodeBytes {
    // Required method
    fn encode(&self) -> Arc<[u8]>;
}
Expand description

Trait for structures that need to be unambiguously encoded as bytes.

Required Methods§

source

fn encode(&self) -> Arc<[u8]>

Encode &self

Implementors§