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 Freeze for TagSection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)