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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.