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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more