#[repr(u8)]pub enum Type {
Bool = 1,
U64 = 2,
I64 = 3,
F64 = 4,
Instant = 5,
Uuid = 6,
Str = 7,
Json = 8,
Blob = 9,
}
Expand description
We define a set of types, associated with simple integers, to annotate values stored
in LMDB. This is to avoid an accidental ‘cast’ from a value of one type to another.
For this reason we don’t simply use deserialize
from the bincode
crate.
Variants§
Implementations§
Trait Implementations§
source§impl PartialEq for Type
impl PartialEq for Type
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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