pub trait SectionWithLimitedItems: SectionReader {
    // Required method
    fn get_count(&self) -> u32;

    // Provided method
    fn into_iter_with_offsets(self) -> IntoIterWithOffsets<Self> 
       where Self: Sized { ... }
}
Expand description

Implemented by sections with a limited number of items.

Required Methods§

source

fn get_count(&self) -> u32

Gets the count of the items in the section.

Provided Methods§

source

fn into_iter_with_offsets(self) -> IntoIterWithOffsets<Self> where Self: Sized,

Returns an iterator over the items within this section where the offset in the original section is provided with the item.

Implementors§

source§

impl SectionWithLimitedItems for IndirectNameMap<'_>

source§

impl SectionWithLimitedItems for NameMap<'_>

source§

impl<'a> SectionWithLimitedItems for CodeSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ComponentAliasSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ComponentCanonicalSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ComponentExportSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ComponentImportSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ComponentInstanceSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ComponentTypeSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for CoreTypeSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for DataSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ElementSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ExportSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for FunctionSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for GlobalSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ImportSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for InstanceSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for LinkingSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for MemorySectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for ProducersSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for RelocSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for TableSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for TagSectionReader<'a>

source§

impl<'a> SectionWithLimitedItems for TypeSectionReader<'a>