pub trait FromReservedLmdbBytes {
// Required method
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§
Sourceunsafe fn from_reserved_lmdb_bytes(_: &mut [u8]) -> &mut Self
unsafe fn from_reserved_lmdb_bytes(_: &mut [u8]) -> &mut Self
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.