pub struct InstantiationArg<'a> {
pub name: &'a str,
pub kind: InstantiationArgKind,
pub index: u32,
}
Expand description
Represents an argument to instantiating a WebAssembly module.
Fields§
§name: &'a str
The name of the module argument.
kind: InstantiationArgKind
The kind of the module argument.
index: u32
The index of the argument item.
Trait Implementations§
source§impl<'a> Clone for InstantiationArg<'a>
impl<'a> Clone for InstantiationArg<'a>
source§fn clone(&self) -> InstantiationArg<'a>
fn clone(&self) -> InstantiationArg<'a>
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<'a> Debug for InstantiationArg<'a>
impl<'a> Debug for InstantiationArg<'a>
source§impl<'a> FromReader<'a> for InstantiationArg<'a>
impl<'a> FromReader<'a> for InstantiationArg<'a>
source§fn from_reader(
reader: &mut BinaryReader<'a>,
) -> Result<InstantiationArg<'a>, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a>, ) -> Result<InstantiationArg<'a>, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.Auto Trait Implementations§
impl<'a> Freeze for InstantiationArg<'a>
impl<'a> RefUnwindSafe for InstantiationArg<'a>
impl<'a> Send for InstantiationArg<'a>
impl<'a> Sync for InstantiationArg<'a>
impl<'a> Unpin for InstantiationArg<'a>
impl<'a> UnwindSafe for InstantiationArg<'a>
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more