Trait ToMdbValue

Source
pub trait ToMdbValue {
    // Required method
    fn to_mdb_value(&self) -> MdbValue<'_>;
}
Expand description

ToMdbValue is supposed to convert a value to a memory slice which lmdb uses to prevent multiple copying data multiple times. May be unsafe.

Required Methods§

Source

fn to_mdb_value(&self) -> MdbValue<'_>

Implementations on Foreign Types§

Source§

impl ToMdbValue for &i64

Source§

impl ToMdbValue for &str

Source§

impl ToMdbValue for &u64

Source§

impl ToMdbValue for &[u8]

Source§

impl ToMdbValue for String

Source§

fn to_mdb_value<'a>(&'a self) -> MdbValue<'a>

Source§

impl ToMdbValue for Vec<u8>

Implementors§