pub trait SectionWithLimitedItems: SectionReader {
fn get_count(&self) -> u32;
fn into_iter_with_offsets(self) -> IntoIterWithOffsets<Self>ⓘNotable traits for IntoIterWithOffsets<R>impl<R> Iterator for IntoIterWithOffsets<R>where
R: SectionWithLimitedItems, type Item = Result<(usize, <R as SectionReader>::Item), BinaryReaderError>;
{ ... }
}
Expand description
Implemented by sections with a limited number of items.
Required Methods
Provided Methods
sourcefn into_iter_with_offsets(self) -> IntoIterWithOffsets<Self>ⓘNotable traits for IntoIterWithOffsets<R>impl<R> Iterator for IntoIterWithOffsets<R>where
R: SectionWithLimitedItems, type Item = Result<(usize, <R as SectionReader>::Item), BinaryReaderError>;
fn into_iter_with_offsets(self) -> IntoIterWithOffsets<Self>ⓘNotable traits for IntoIterWithOffsets<R>impl<R> Iterator for IntoIterWithOffsets<R>where
R: SectionWithLimitedItems, type Item = Result<(usize, <R as SectionReader>::Item), BinaryReaderError>;
R: SectionWithLimitedItems, type Item = Result<(usize, <R as SectionReader>::Item), BinaryReaderError>;
Returns an iterator over the items within this section where the offset in the original section is provided with the item.