Trait libmdbx::TableObject

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

Implement this to be able to decode data values

Required Methods§

source

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

Implementations on Foreign Types§

source§

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

source§

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

source§

impl<'tx> TableObject<'tx> for Vec<u8>

source§

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

source§

impl<'tx> TableObject<'tx> for ()

source§

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

source§

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

source§

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

Implementors§