Trait golem_wasm_ast::Section
source · pub trait Section<IS: IndexSpace, ST: SectionType>: Debug + Clone + PartialEq {
// Required methods
fn index_space(&self) -> IS;
fn section_type(&self) -> ST;
}
Expand description
A section is one top level element of a WASM binary, each having an associated IndexSpace and SectionType.
There are two families of sections, core WASM module sections are defined in the core module, while component model sections are defined in the component module.
Required Methods§
fn index_space(&self) -> IS
fn section_type(&self) -> ST
Object Safety§
This trait is not object safe.