Struct wasmparser_nostd::Import
source · pub struct Import<'a> {
pub module: &'a str,
pub name: &'a str,
pub ty: TypeRef,
}
Expand description
Represents an import in a WebAssembly module.
Fields§
§module: &'a str
The module being imported from.
name: &'a str
The name of the imported item.
ty: TypeRef
The type of the imported item.
Trait Implementations§
source§impl<'a> FromReader<'a> for Import<'a>
impl<'a> FromReader<'a> for Import<'a>
source§fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.impl<'a> Copy for Import<'a>
Auto Trait Implementations§
impl<'a> Freeze for Import<'a>
impl<'a> RefUnwindSafe for Import<'a>
impl<'a> Send for Import<'a>
impl<'a> Sync for Import<'a>
impl<'a> Unpin for Import<'a>
impl<'a> UnwindSafe for Import<'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