pub struct ContiguousSegmentIterator {
pub index: LineIndex,
/* private fields */
}Fields§
§index: LineIndexImplementations§
Source§impl ContiguousSegmentIterator
impl ContiguousSegmentIterator
pub fn remaining_range(&self) -> Range<usize>
Sourcepub fn next_buf(&mut self) -> Option<(&LineIndex, u64, &[u8])>
pub fn next_buf(&mut self) -> Option<(&LineIndex, u64, &[u8])>
Get the next buffer from the ContiguousSegmentIterator.
This function retrieves the next buffer from the ContiguousSegmentIterator and returns it as an Option.
If there are no more buffers available, it returns None.
§Returns
Some((&Idx, u64, &[u8])): A tuple containing the index, starting data position, and a slice of the buffer data.None: If there are no more buffers available.
Auto Trait Implementations§
impl !Freeze for ContiguousSegmentIterator
impl !RefUnwindSafe for ContiguousSegmentIterator
impl Send for ContiguousSegmentIterator
impl !Sync for ContiguousSegmentIterator
impl Unpin for ContiguousSegmentIterator
impl UnwindSafe for ContiguousSegmentIterator
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