Trait cranelift_wasm::wasmparser::Subsection
source · pub trait Subsection<'a>: Sized {
// Required method
fn from_reader(
id: u8,
reader: BinaryReader<'a>
) -> Result<Self, BinaryReaderError>;
}
Expand description
A trait implemented for subsections of another outer section.
This is currently only used for subsections within custom sections, such as
the name
section of core wasm.
This is used in conjunction with Subsections
.
Required Methods§
sourcefn from_reader(
id: u8,
reader: BinaryReader<'a>
) -> Result<Self, BinaryReaderError>
fn from_reader( id: u8, reader: BinaryReader<'a> ) -> Result<Self, BinaryReaderError>
Converts the section identifier provided with the section contents into a typed section
Object Safety§
This trait is not object safe.