pub trait Ordered: ByteStore {
// Required methods
fn get_lt(
&self,
key: &[u8],
) -> Result<Option<(Self::Bytes, Self::Bytes)>, Self::DbError>;
fn get_gt(
&self,
key: &[u8],
) -> Result<Option<(Self::Bytes, Self::Bytes)>, Self::DbError>;
}Expand description
A helper trait, implementing this automatically implements
data_store::Ordered