Trait hotshot_types::traits::block_contents::EncodeBytes

source ·
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§