pub struct StreamingLexIterator<R: Read> { /* private fields */ }
Expand description
Streaming lexicographic iterator for large datasets
Designed for datasets that don’t fit in memory, using buffered reading and incremental processing patterns.
Implementations§
Trait Implementations§
Source§impl<R: Read> LexicographicIterator for StreamingLexIterator<R>
impl<R: Read> LexicographicIterator for StreamingLexIterator<R>
type Error = ZiporaError
Source§fn next(&mut self) -> Result<bool, Self::Error>
fn next(&mut self) -> Result<bool, Self::Error>
Move to the next string in lexicographic order
Returns true if successful, false if at end
Source§fn prev(&mut self) -> Result<bool, Self::Error>
fn prev(&mut self) -> Result<bool, Self::Error>
Move to the previous string in lexicographic order
Returns true if successful, false if at beginning
Returns true if successful, false if at beginning
Source§fn seek_start(&mut self) -> Result<bool, Self::Error>
fn seek_start(&mut self) -> Result<bool, Self::Error>
Move to the first string in the collection
Source§fn seek_lower_bound(&mut self, _target: &str) -> Result<bool, Self::Error>
fn seek_lower_bound(&mut self, _target: &str) -> Result<bool, Self::Error>
Binary search for the first string >= target
Returns true if exact match found, false if positioned at next larger string
Source§fn seek_upper_bound(&mut self, target: &str) -> Result<bool, Self::Error>
fn seek_upper_bound(&mut self, target: &str) -> Result<bool, Self::Error>
Binary search for the first string > target
Source§fn size_hint(&self) -> Option<usize>
fn size_hint(&self) -> Option<usize>
Get an estimate of the total number of strings (if available)
Source§fn is_at_start(&self) -> bool
fn is_at_start(&self) -> bool
Check if the iterator is at the beginning
Auto Trait Implementations§
impl<R> Freeze for StreamingLexIterator<R>where
R: Freeze,
impl<R> RefUnwindSafe for StreamingLexIterator<R>where
R: RefUnwindSafe,
impl<R> Send for StreamingLexIterator<R>where
R: Send,
impl<R> Sync for StreamingLexIterator<R>where
R: Sync,
impl<R> Unpin for StreamingLexIterator<R>where
R: Unpin,
impl<R> UnwindSafe for StreamingLexIterator<R>where
R: 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> Factoryable for T
impl<T> Factoryable for T
Source§fn create(name: &str) -> Result<T, ZiporaError>
fn create(name: &str) -> Result<T, ZiporaError>
Create an instance by name using the global factory
Source§fn list_creators() -> Result<Vec<String>, ZiporaError>
fn list_creators() -> Result<Vec<String>, ZiporaError>
List all available creator names
Source§fn has_creator(name: &str) -> Result<bool, ZiporaError>
fn has_creator(name: &str) -> Result<bool, ZiporaError>
Check if a creator is available
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