Enum wasmer_types::ExternType
source · [−]pub enum ExternType {
Function(FunctionType),
Global(GlobalType),
Table(TableType),
Memory(MemoryType),
}
Expand description
A list of all possible types which can be externally referenced from a WebAssembly module.
This list can be found in ImportType
or ExportType
, so these types
can either be imported or exported.
Variants
Function(FunctionType)
This external type is the type of a WebAssembly function.
Global(GlobalType)
This external type is the type of a WebAssembly global.
Table(TableType)
This external type is the type of a WebAssembly table.
Memory(MemoryType)
This external type is the type of a WebAssembly memory.
Implementations
Attempt to return the underlying type of this external type,
returning None
if it is a different type.
Returns the underlying descriptor of this ExternType
, panicking
if it is a different type.
Panics
Panics if self
is not of the right type.
Attempt to return the underlying type of this external type,
returning None
if it is a different type.
Returns the underlying descriptor of this ExternType
, panicking
if it is a different type.
Panics
Panics if self
is not of the right type.
Attempt to return the underlying type of this external type,
returning None
if it is a different type.
Returns the underlying descriptor of this ExternType
, panicking
if it is a different type.
Panics
Panics if self
is not of the right type.
Attempt to return the underlying type of this external type,
returning None
if it is a different type.
Returns the underlying descriptor of this ExternType
, panicking
if it is a different type.
Panics
Panics if self
is not of the right type.
Check if two externs are compatible
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ExternType
impl Send for ExternType
impl Sync for ExternType
impl Unpin for ExternType
impl UnwindSafe for ExternType
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
Compare self to key
and return true
if they are equal.