Struct wasmer_types::ImportType [−][src]
pub struct ImportType<T = ExternType> { /* fields omitted */ }
Expand description
A descriptor for an imported value into a wasm module.
This type is primarily accessed from the Module::imports
API. Each ImportType
describes an import into the wasm module
with the module/name that it’s imported from as well as the type
of item that’s being imported.
Implementations
impl<T> ImportType<T>
[src]
impl<T> ImportType<T>
[src]Trait Implementations
impl<T: Clone> Clone for ImportType<T>
[src]
impl<T: Clone> Clone for ImportType<T>
[src]fn clone(&self) -> ImportType<T>
[src]
fn clone(&self) -> ImportType<T>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for ImportType<T>
[src]
impl<T: Debug> Debug for ImportType<T>
[src]impl<'de, T> Deserialize<'de> for ImportType<T> where
T: Deserialize<'de>,
[src]
impl<'de, T> Deserialize<'de> for ImportType<T> where
T: Deserialize<'de>,
[src]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
impl<T: Hash> Hash for ImportType<T>
[src]
impl<T: Hash> Hash for ImportType<T>
[src]impl<T: PartialEq> PartialEq<ImportType<T>> for ImportType<T>
[src]
impl<T: PartialEq> PartialEq<ImportType<T>> for ImportType<T>
[src]fn eq(&self, other: &ImportType<T>) -> bool
[src]
fn eq(&self, other: &ImportType<T>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ImportType<T>) -> bool
[src]
fn ne(&self, other: &ImportType<T>) -> bool
[src]This method tests for !=
.
impl<T> Serialize for ImportType<T> where
T: Serialize,
[src]
impl<T> Serialize for ImportType<T> where
T: Serialize,
[src]impl<T: Eq> Eq for ImportType<T>
[src]
impl<T> StructuralEq for ImportType<T>
[src]
impl<T> StructuralPartialEq for ImportType<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ImportType<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ImportType<T> where
T: Send,
T: Send,
impl<T> Sync for ImportType<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ImportType<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ImportType<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]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
[src]
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]Converts some archived metadata to the pointer metadata for itself.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,