Struct wasm_runtime_layer::ImportType
source · pub struct ImportType<'module> {
pub module: &'module str,
pub name: &'module str,
pub ty: ExternType,
}
Expand description
A descriptor for an imported value into a Wasm Module
.
This type is primarily accessed from the Module::imports
method.
Each ImportType
describes an import into the Wasm module with the module/name
that it is imported from as well as the type of item that is being imported.
Fields§
§module: &'module str
The module import name.
name: &'module str
The name of the imported item.
ty: ExternType
The external item type.
Trait Implementations§
source§impl<'module> Clone for ImportType<'module>
impl<'module> Clone for ImportType<'module>
source§fn clone(&self) -> ImportType<'module>
fn clone(&self) -> ImportType<'module>
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 moreAuto Trait Implementations§
impl<'module> Freeze for ImportType<'module>
impl<'module> RefUnwindSafe for ImportType<'module>
impl<'module> Send for ImportType<'module>
impl<'module> Sync for ImportType<'module>
impl<'module> Unpin for ImportType<'module>
impl<'module> UnwindSafe for ImportType<'module>
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