Skip to main content

EntrySource

Trait EntrySource 

Source
pub trait EntrySource: Send + Sync {
    // Required methods
    fn current(&self) -> Option<&VersionedEntry>;
    fn next(&mut self) -> bool;
    fn seek(&mut self, key: &[u8]);
    fn exhausted(&self) -> bool;
    fn priority(&self) -> u32;
}
Expand description

Source of entries for merging

Required Methods§

Source

fn current(&self) -> Option<&VersionedEntry>

Get current entry (None if exhausted)

Source

fn next(&mut self) -> bool

Advance to next entry

Source

fn seek(&mut self, key: &[u8])

Seek to first entry >= key

Source

fn exhausted(&self) -> bool

Check if source is exhausted

Source

fn priority(&self) -> u32

Source priority (lower = higher priority for same key)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§