Macro mmtkvdb::impl_ord_for_storable
source · [−]macro_rules! impl_ord_for_storable {
($type:ty) => { ... };
}
Expand description
Implement Ord
based on Storable
Ord
is a supertrait of Storable
. This macro allows implementing Ord
(as well as PartialEq
, Eq
, and PartialOrd
) based on the
implementation of Storable::to_bytes
and comparing its output
lexicographically.