Skip to main content

EncodeBytes

Trait 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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§