Trait ord_lmdb_zero::traits::FromReservedLmdbBytes
source · [−]pub trait FromReservedLmdbBytes {
unsafe fn from_reserved_lmdb_bytes(_: &mut [u8]) -> &mut Self;
}
Expand description
Like FromLmdbBytes
, but can be used with put_reserve()
calls.
A blanket implementation is provided for anything which is LmdbRaw
.
Required methods
Given a mutable byte slice containing arbitrary data, return an
instance of Self
.
This is not allowed to fail, since there is no control over the original content of the slice.
Unsafety
This function is allowed to blindly assume that the byte slice is an appropriate size.