Trait lmdb_rs::traits::ToMdbValue
[−]
[src]
pub trait ToMdbValue { fn to_mdb_value<'a>(&'a self) -> MdbValue<'a>; }
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
fn to_mdb_value<'a>(&'a self) -> MdbValue<'a>
Implementors
impl ToMdbValue for Vec<u8>
impl ToMdbValue for String
impl<'a> ToMdbValue for &'a str
impl<'a> ToMdbValue for &'a [u8]
impl ToMdbValue for MDB_val
impl<'a> ToMdbValue for MdbValue<'a>
impl ToMdbValue for u8
impl ToMdbValue for i8
impl ToMdbValue for u16
impl ToMdbValue for i16
impl ToMdbValue for u32
impl ToMdbValue for i32
impl ToMdbValue for u64
impl ToMdbValue for i64
impl ToMdbValue for f32
impl ToMdbValue for f64
impl ToMdbValue for bool