Module ord_lmdb_zero::traits
source · [−]Expand description
Module containing public traits.
This exists as a separate module solely so that it can be wildcard imported where necessary.
Re-exports
pub use error;
pub use error::LmdbResultExt;
Traits
Translates a value into a byte slice to be stored in LMDB.
Types of transaction references which can be used to renew StaleCursor
s
into functional Cursor
s.
Types of transaction references which can be used to construct Cursor
s.
Inverts AsLmdbBytes
, producing a reference to a structure inside a
byte array.
Like FromLmdbBytes
, but can be used with put_reserve()
calls.
Trait describing a value which can be used as an LMDB key by having LMDB
call into the value’s Ord
implementation.
Marker trait for types where Unaligned<T>
is LmdbOrdKey
.
Marker trait indicating a value is to be stored in LMDB by simply copying it in.
Marker trait for types where Unaligned<T>
is LmdbRaw
.
Extension trait for Rc
and Arc
that allows up-casting a reference to
ReadTransaction
or WriteTransaction
to ConstTransaction
.