pub struct KeyData<K: Array + Ord, V: CodecFixed> {
pub key: K,
pub value: V,
pub next_key: K,
}Expand description
Data about a key in an ordered database or an ordered database operation.
Fields§
§key: KThe key that exists in the database or in the database operation.
value: VThe value of key in the database or operation.
next_key: KThe next-key of key in the database or operation.
The next-key is the next active key that lexicographically follows it in the key space. If the key is the lexicographically-last active key, then next-key is the lexicographically-first of all active keys (in a DB with only one key, this means its next-key is itself)
Trait Implementations§
Source§impl<K: Ord + Array + Ord, V: Ord + CodecFixed> Ord for KeyData<K, V>
impl<K: Ord + Array + Ord, V: Ord + CodecFixed> Ord for KeyData<K, V>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K: PartialOrd + Array + Ord, V: PartialOrd + CodecFixed> PartialOrd for KeyData<K, V>
impl<K: PartialOrd + Array + Ord, V: PartialOrd + CodecFixed> PartialOrd for KeyData<K, V>
impl<K: Eq + Array + Ord, V: Eq + CodecFixed> Eq for KeyData<K, V>
impl<K: Array + Ord, V: CodecFixed> StructuralPartialEq for KeyData<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for KeyData<K, V>
impl<K, V> RefUnwindSafe for KeyData<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for KeyData<K, V>where
V: Send,
impl<K, V> Sync for KeyData<K, V>where
V: Sync,
impl<K, V> Unpin for KeyData<K, V>
impl<K, V> UnwindSafe for KeyData<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more