Trait heed_traits::BytesDecode

source ·
pub trait BytesDecode<'a> {
    type DItem: 'a;

    // Required method
    fn bytes_decode(bytes: &'a [u8]) -> Result<Self::DItem, BoxedError>;
}
Expand description

A trait that represents a decoding structure.

Required Associated Types§

source

type DItem: 'a

The type to decode.

Required Methods§

source

fn bytes_decode(bytes: &'a [u8]) -> Result<Self::DItem, BoxedError>

Decode the given bytes as DItem.

Object Safety§

This trait is not object safe.

Implementors§