Struct wasmer_ruby::Wasmer::ImportType
source · pub struct ImportType;
Expand description
Represents the type of a module’s import. It is usually built
from the Module::imports
getter.
Implementations§
source§impl ImportType
impl ImportType
sourcepub fn new(module: String, name: String, type: Any) -> Self
pub fn new(module: String, name: String, type: Any) -> Self
Creates a new ImportType
.
type
must be of type FunctionType
, MemoryType
,
GlobalType
or TableType
.
Example
ⓘ
import_type = Wasmer::ImportType.new "foo", "bar", Wasmer::Function.new([Wasmer::Type::I32], [])
Auto Trait Implementations§
impl RefUnwindSafe for ImportType
impl Send for ImportType
impl Sync for ImportType
impl Unpin for ImportType
impl UnwindSafe for ImportType
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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