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
source§impl Encode for TagSection
 
impl Encode for TagSection
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§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more