Struct wasmer_engine::ExportFunction
source · [−]pub struct ExportFunction {
pub vm_function: VMFunction,
pub metadata: Option<Arc<ExportFunctionMetadata>>,
}
Expand description
A function export value with an extra function pointer to initialize host environments.
Fields
vm_function: VMFunction
The VM function, containing most of the data.
metadata: Option<Arc<ExportFunctionMetadata>>
Contains functions necessary to create and initialize host envs
with each Instance
as well as being responsible for the
underlying memory of the host env.
Trait Implementations
sourceimpl Clone for ExportFunction
impl Clone for ExportFunction
sourcefn clone(&self) -> ExportFunction
fn clone(&self) -> ExportFunction
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 Debug for ExportFunction
impl Debug for ExportFunction
sourceimpl From<ExportFunction> for Export
impl From<ExportFunction> for Export
sourcefn from(func: ExportFunction) -> Self
fn from(func: ExportFunction) -> Self
Performs the conversion.
sourceimpl MemoryUsage for ExportFunction
impl MemoryUsage for ExportFunction
sourcefn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
Returns the size of the referenced value in bytes. Read more
sourceimpl PartialEq<ExportFunction> for ExportFunction
impl PartialEq<ExportFunction> for ExportFunction
sourcefn eq(&self, other: &ExportFunction) -> bool
fn eq(&self, other: &ExportFunction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExportFunction) -> bool
fn ne(&self, other: &ExportFunction) -> bool
This method tests for !=
.
impl StructuralPartialEq for ExportFunction
Auto Trait Implementations
impl !RefUnwindSafe for ExportFunction
impl Send for ExportFunction
impl Sync for ExportFunction
impl Unpin for ExportFunction
impl !UnwindSafe for ExportFunction
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
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.
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
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,
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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