pub trait ComponentSection: Encode {
    // Required method
    fn id(&self) -> u8;
}
Expand description

A WebAssembly component section.

Various builders defined in this crate already implement this trait, but you can also implement it yourself for your own custom section builders, or use RawSection to use a bunch of raw bytes as a section.

Required Methods§

source

fn id(&self) -> u8

Gets the section identifier for this section.

Implementors§