Struct wasmer_ruby::Wasmer::ExportType
source · pub struct ExportType;
Expand description
Represents the type of a module’s export (not to be confused
with an export of an instance). It is usually built from the
Module::exports
getter.
Implementations§
source§impl ExportType
impl ExportType
sourcepub fn new(name: String, type: Any) -> Self
pub fn new(name: String, type: Any) -> Self
Creates a new ExportType
.
type
must be of type FunctionType
, MemoryType
,
GlobalType
or TableType
.
Example
ⓘ
export_type = Wasmer::ExportType.new "foo", Wasmer::Function.new([Wasmer::Type::I32], [])
Auto Trait Implementations§
impl RefUnwindSafe for ExportType
impl Send for ExportType
impl Sync for ExportType
impl Unpin for ExportType
impl UnwindSafe for ExportType
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