Enum wasmer_types::ExternType [−][src]
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>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]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 ExternTypeimpl Send for ExternTypeimpl Sync for ExternTypeimpl Unpin for ExternTypeimpl UnwindSafe for ExternTypeBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.