Trait wasm_encoder::adapter::AdapterModuleSection [−][src]
pub trait AdapterModuleSection {
fn id(&self) -> u8;
fn encode<S>(&self, sink: &mut S)
where
S: Extend<u8>;
}
Expand description
A WebAssembly adapter module section.
This trait marks sections that can be written to an AdapterModule
.
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.