ledb 0.4.0

Lightweight embedded database built over LMDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use lmdb::traits::{LmdbOrdKeyIfUnaligned, LmdbRawIfUnaligned};
use ordered_float::OrderedFloat;

#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[repr(transparent)]
pub struct F64(pub OrderedFloat<f64>);

unsafe impl LmdbRawIfUnaligned for F64 {
    fn reported_type() -> String {
        f64::reported_type()
    }
}

unsafe impl LmdbOrdKeyIfUnaligned for F64 {}