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
sourceimpl Clone for TagSection
impl Clone for TagSection
sourcefn clone(&self) -> TagSection
fn clone(&self) -> TagSection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TagSection
impl Debug for TagSection
sourceimpl Default for TagSection
impl Default for TagSection
sourcefn default() -> TagSection
fn default() -> TagSection
Returns the “default value” for a type. Read more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more