Trait reth_libmdbx::TableObject

source ·
pub trait TableObject: Sized {
    // Required method
    fn decode(data_val: &[u8]) -> Result<Self, Error>;
}
Expand description

Implement this to be able to decode data values

Required Methods§

source

fn decode(data_val: &[u8]) -> Result<Self, Error>

Decodes the object from the given bytes.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TableObject for ()

source§

fn decode(_: &[u8]) -> Result<Self, Error>

source§

impl TableObject for Vec<u8>

source§

fn decode(data_val: &[u8]) -> Result<Self, Error>

source§

impl<'tx> TableObject for Cow<'tx, [u8]>

source§

fn decode(_: &[u8]) -> Result<Self, Error>

source§

impl<const LEN: usize> TableObject for [u8; LEN]

source§

fn decode(data_val: &[u8]) -> Result<Self, Error>

Implementors§