Struct wasmer::ExportType
source · [−]pub struct ExportType<T = ExternType> { /* private fields */ }
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
sourceimpl<T> ExportType<T>
impl<T> ExportType<T>
Trait Implementations
sourceimpl<T> Clone for ExportType<T> where
T: Clone,
impl<T> Clone for ExportType<T> where
T: Clone,
sourcepub fn clone(&self) -> ExportType<T>
pub fn clone(&self) -> ExportType<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Debug for ExportType<T> where
T: Debug,
impl<T> Debug for ExportType<T> where
T: Debug,
sourceimpl<'de, T> Deserialize<'de> for ExportType<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ExportType<T> where
T: Deserialize<'de>,
sourcepub 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
sourceimpl<T> Hash for ExportType<T> where
T: Hash,
impl<T> Hash for ExportType<T> where
T: Hash,
sourceimpl<T> PartialEq<ExportType<T>> for ExportType<T> where
T: PartialEq<T>,
impl<T> PartialEq<ExportType<T>> for ExportType<T> where
T: PartialEq<T>,
sourcepub 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
sourcepub fn ne(&self, other: &ExportType<T>) -> bool
pub fn ne(&self, other: &ExportType<T>) -> bool
This method tests for !=
.
sourceimpl<T> Serialize for ExportType<T> where
T: Serialize,
impl<T> Serialize for ExportType<T> where
T: Serialize,
sourcepub 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
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcepub 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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<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,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more