DecodeElement

Trait DecodeElement 

Source
pub trait DecodeElement: Sized + Element {
    // Provided method
    fn decode_element(header: &Header, buf: &mut &[u8]) -> Result<Self> { ... }
}
Expand description

Decode an element using the provided header

Provided Methods§

Source

fn decode_element(header: &Header, buf: &mut &[u8]) -> Result<Self>

Decode an element using the provided header implemented for all Elements.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Element> DecodeElement for T