pub struct IndexEntryKey {
pub source: SourceId,
pub index: IndexId,
pub key: EncodedIndexKey,
}Expand description
Key for storing actual index entries with the encoded index key data
Fields§
§source: SourceId§index: IndexId§key: EncodedIndexKeyImplementations§
Source§impl IndexEntryKey
impl IndexEntryKey
Source§impl IndexEntryKey
impl IndexEntryKey
Sourcepub fn index_range(
source: impl Into<SourceId>,
index: IndexId,
) -> EncodedKeyRange
pub fn index_range( source: impl Into<SourceId>, index: IndexId, ) -> EncodedKeyRange
Create a range for scanning all entries of a specific index
Sourcepub fn source_range(source: impl Into<SourceId>) -> EncodedKeyRange
pub fn source_range(source: impl Into<SourceId>) -> EncodedKeyRange
Create a range for scanning all entries of a source (all indexes)
Sourcepub fn key_prefix_range(
source: impl Into<SourceId>,
index: IndexId,
key_prefix: &[u8],
) -> EncodedKeyRange
pub fn key_prefix_range( source: impl Into<SourceId>, index: IndexId, key_prefix: &[u8], ) -> EncodedKeyRange
Create a range for scanning entries within an index with a specific key prefix
Sourcepub fn key_range(
source: impl Into<SourceId>,
index: IndexId,
index_range: EncodedIndexKeyRange,
) -> EncodedKeyRange
pub fn key_range( source: impl Into<SourceId>, index: IndexId, index_range: EncodedIndexKeyRange, ) -> EncodedKeyRange
Create a range for entries from an EncodedIndexKeyRange This method leverages the EncodedIndexKeyRange type for cleaner range handling.
Trait Implementations§
Source§impl Clone for IndexEntryKey
impl Clone for IndexEntryKey
Source§fn clone(&self) -> IndexEntryKey
fn clone(&self) -> IndexEntryKey
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexEntryKey
impl Debug for IndexEntryKey
Source§impl EncodableKey for IndexEntryKey
impl EncodableKey for IndexEntryKey
Source§impl PartialEq for IndexEntryKey
impl PartialEq for IndexEntryKey
impl StructuralPartialEq for IndexEntryKey
Auto Trait Implementations§
impl Freeze for IndexEntryKey
impl RefUnwindSafe for IndexEntryKey
impl Send for IndexEntryKey
impl Sync for IndexEntryKey
impl Unpin for IndexEntryKey
impl UnwindSafe for IndexEntryKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)