pub struct SparseIndexEntry {
pub key: Vec<u8>,
pub offset: u64,
pub version: u64,
}Expand description
Entry in the sparse index that aids in binary search during lookups
Fields§
§key: Vec<u8>Key for this index entry
offset: u64Byte offset where this entry starts in the segment
version: u64Version number of the command
Trait Implementations§
Source§impl Clone for SparseIndexEntry
impl Clone for SparseIndexEntry
Source§fn clone(&self) -> SparseIndexEntry
fn clone(&self) -> SparseIndexEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparseIndexEntry
impl Debug for SparseIndexEntry
Source§impl<'de> Deserialize<'de> for SparseIndexEntry
impl<'de> Deserialize<'de> for SparseIndexEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SparseIndexEntry
impl RefUnwindSafe for SparseIndexEntry
impl Send for SparseIndexEntry
impl Sync for SparseIndexEntry
impl Unpin for SparseIndexEntry
impl UnsafeUnpin for SparseIndexEntry
impl UnwindSafe for SparseIndexEntry
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