pub struct MdbValue<'a> { /* private fields */ }
Implementations§
Source§impl<'a> MdbValue<'a>
impl<'a> MdbValue<'a>
Sourcepub unsafe fn new(data: *const c_void, len: usize) -> MdbValue<'a>
pub unsafe fn new(data: *const c_void, len: usize) -> MdbValue<'a>
§Safety
caller is responsible for safety
Sourcepub unsafe fn from_raw(mdb_val: *const MDB_val) -> MdbValue<'a>
pub unsafe fn from_raw(mdb_val: *const MDB_val) -> MdbValue<'a>
§Safety
caller is responsible for safety
Sourcepub unsafe fn new_from_sized<T>(data: &'a T) -> MdbValue<'a>
pub unsafe fn new_from_sized<T>(data: &'a T) -> MdbValue<'a>
§Safety
caller is responsible for safety.
See github issue: https://github.com/kn0sys/valentinus/issues/11
Primitive transmutations are removed as of release v0.1.2
pub fn get_size(&self) -> usize
Trait Implementations§
Source§impl ToMdbValue for MdbValue<'_>
impl ToMdbValue for MdbValue<'_>
fn to_mdb_value(&self) -> MdbValue<'_>
impl<'a> Copy for MdbValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for MdbValue<'a>
impl<'a> RefUnwindSafe for MdbValue<'a>
impl<'a> !Send for MdbValue<'a>
impl<'a> !Sync for MdbValue<'a>
impl<'a> Unpin for MdbValue<'a>
impl<'a> UnwindSafe for MdbValue<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more