Struct wasm_encoder::TagSection
source · pub struct TagSection { /* private fields */ }
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§
source§impl Clone for TagSection
impl Clone for TagSection
source§fn clone(&self) -> TagSection
fn clone(&self) -> TagSection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TagSection
impl Debug for TagSection
source§impl Default for TagSection
impl Default for TagSection
source§fn default() -> TagSection
fn default() -> TagSection
Returns the “default value” for a type. Read more