Struct wasmparser::Section
source · pub struct Section<'a> {
pub code: SectionCode<'a>,
/* private fields */
}
Fields
code: SectionCode<'a>
Implementations
sourceimpl<'a> Section<'a>
impl<'a> Section<'a>
sourcepub fn get_type_section_reader<'b>(&self) -> Result<TypeSectionReader<'b>>where
'a: 'b,
pub fn get_type_section_reader<'b>(&self) -> Result<TypeSectionReader<'b>>where
'a: 'b,
Creates reader for the type section. Available when the reader just read the type section.
sourcepub fn get_function_section_reader<'b>(
&self
) -> Result<FunctionSectionReader<'b>>where
'a: 'b,
pub fn get_function_section_reader<'b>(
&self
) -> Result<FunctionSectionReader<'b>>where
'a: 'b,
Creates reader for the function section. Available when the reader just read the function section.
sourcepub fn get_code_section_reader<'b>(&self) -> Result<CodeSectionReader<'b>>where
'a: 'b,
pub fn get_code_section_reader<'b>(&self) -> Result<CodeSectionReader<'b>>where
'a: 'b,
Creates reader for the code section. Available when the reader just read the code section.
sourcepub fn get_export_section_reader<'b>(&self) -> Result<ExportSectionReader<'b>>where
'a: 'b,
pub fn get_export_section_reader<'b>(&self) -> Result<ExportSectionReader<'b>>where
'a: 'b,
Creates reader for the export section. Available when the reader just read the export section.
sourcepub fn get_import_section_reader<'b>(&self) -> Result<ImportSectionReader<'b>>where
'a: 'b,
pub fn get_import_section_reader<'b>(&self) -> Result<ImportSectionReader<'b>>where
'a: 'b,
Creates reader for the import section. Available when the reader just read the import section.
sourcepub fn get_global_section_reader<'b>(&self) -> Result<GlobalSectionReader<'b>>where
'a: 'b,
pub fn get_global_section_reader<'b>(&self) -> Result<GlobalSectionReader<'b>>where
'a: 'b,
Creates reader for the global section. Available when the reader just read the global section.
sourcepub fn get_memory_section_reader<'b>(&self) -> Result<MemorySectionReader<'b>>where
'a: 'b,
pub fn get_memory_section_reader<'b>(&self) -> Result<MemorySectionReader<'b>>where
'a: 'b,
Creates reader for the memory section. Available when the reader just read the memory section.
sourcepub fn get_data_section_reader<'b>(&self) -> Result<DataSectionReader<'b>>where
'a: 'b,
pub fn get_data_section_reader<'b>(&self) -> Result<DataSectionReader<'b>>where
'a: 'b,
Creates reader for the data section. Available when the reader just read the data section.
sourcepub fn get_table_section_reader<'b>(&self) -> Result<TableSectionReader<'b>>where
'a: 'b,
pub fn get_table_section_reader<'b>(&self) -> Result<TableSectionReader<'b>>where
'a: 'b,
Creates reader for the table section. Available when the reader just read the table section.
sourcepub fn get_element_section_reader<'b>(&self) -> Result<ElementSectionReader<'b>>where
'a: 'b,
pub fn get_element_section_reader<'b>(&self) -> Result<ElementSectionReader<'b>>where
'a: 'b,
Creates reader for the element section. Available when the reader just read the element section.