Struct holochain_wasmer_host::prelude::ExportType [−]
pub struct ExportType<T = ExternType> { /* fields omitted */ }
Expand description
A descriptor for an exported WebAssembly value.
This type is primarily accessed from the Module::exports
accessor and describes what names are exported from a wasm module
and the type of the item that is exported.
The <T>
refefers to ExternType
, however it can also refer to use
MemoryType
, TableType
, FunctionType
and GlobalType
for ease of
use.
Implementations
impl<T> ExportType<T>
impl<T> ExportType<T>
Trait Implementations
impl<T> Clone for ExportType<T> where
T: Clone,
impl<T> Clone for ExportType<T> where
T: Clone,
pub fn clone(&self) -> ExportType<T>
pub fn clone(&self) -> ExportType<T>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<T> Debug for ExportType<T> where
T: Debug,
impl<T> Debug for ExportType<T> where
T: Debug,
impl<'de, T> Deserialize<'de> for ExportType<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ExportType<T> where
T: Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ExportType<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ExportType<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> Hash for ExportType<T> where
T: Hash,
impl<T> Hash for ExportType<T> where
T: Hash,
impl<T> PartialEq<ExportType<T>> for ExportType<T> where
T: PartialEq<T>,
impl<T> PartialEq<ExportType<T>> for ExportType<T> where
T: PartialEq<T>,
pub fn eq(&self, other: &ExportType<T>) -> bool
pub fn eq(&self, other: &ExportType<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ExportType<T>) -> bool
pub fn ne(&self, other: &ExportType<T>) -> bool
This method tests for !=
.
impl<T> Serialize for ExportType<T> where
T: Serialize,
impl<T> Serialize for ExportType<T> where
T: Serialize,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> Eq for ExportType<T> where
T: Eq,
impl<T> StructuralEq for ExportType<T>
impl<T> StructuralPartialEq for ExportType<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ExportType<T> where
T: RefUnwindSafe,
impl<T> Send for ExportType<T> where
T: Send,
impl<T> Sync for ExportType<T> where
T: Sync,
impl<T> Unpin for ExportType<T> where
T: Unpin,
impl<T> UnwindSafe for ExportType<T> where
T: UnwindSafe,
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
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V