Struct wasm_encoder::TagSection [−][src]
pub struct TagSection { /* fields omitted */ }
Expand description
An encoder for the tag section.
Example
use wasm_encoder::{Module, TagSection, TagType, TagKind};
let mut tags = TagSection::new();
tags.tag(TagType {
kind: TagKind::Exception,
func_type_idx: 0,
});
let mut module = Module::new();
module.section(&tags);
let wasm_bytes = module.finish();
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TagSection
impl Send for TagSection
impl Sync for TagSection
impl Unpin for TagSection
impl UnwindSafe for TagSection
Blanket Implementations
Mutably borrows from an owned value. Read more