pub enum ArtifactBuildVariant {
Plain(ArtifactBuild),
Archived(ArtifactBuildFromArchive),
}
Expand description
Artifacts may be created as the result of the compilation of a wasm
module, corresponding to ArtifactBuildVariant::Plain
, or loaded
from an archive, corresponding to ArtifactBuildVariant::Archived
.
Variants§
Plain(ArtifactBuild)
Archived(ArtifactBuildFromArchive)
Trait Implementations§
source§impl<'a> ArtifactCreate<'a> for ArtifactBuildVariant
impl<'a> ArtifactCreate<'a> for ArtifactBuildVariant
§type OwnedDataInitializer = OwnedDataInitializerVariant<'a>
type OwnedDataInitializer = OwnedDataInitializerVariant<'a>
Type of
OwnedDataInitializer
returned by the data_initializers
method§type OwnedDataInitializerIterator = IntoIter<<ArtifactBuildVariant as ArtifactCreate<'a>>::OwnedDataInitializer>
type OwnedDataInitializerIterator = IntoIter<<ArtifactBuildVariant as ArtifactCreate<'a>>::OwnedDataInitializer>
Type of iterator returned by the
data_initializers
methodsource§fn create_module_info(&self) -> Arc<ModuleInfo>
fn create_module_info(&self) -> Arc<ModuleInfo>
Create a
ModuleInfo
for instantiationsource§fn set_module_info_name(&mut self, name: String) -> bool
fn set_module_info_name(&mut self, name: String) -> bool
Sets the
ModuleInfo
namesource§fn module_info(&self) -> &ModuleInfo
fn module_info(&self) -> &ModuleInfo
Returns the
ModuleInfo
for instantiationsource§fn cpu_features(&self) -> EnumSet<CpuFeature>
fn cpu_features(&self) -> EnumSet<CpuFeature>
Returns the CPU features for this Artifact
source§fn memory_styles(&self) -> &PrimaryMap<MemoryIndex, MemoryStyle>
fn memory_styles(&self) -> &PrimaryMap<MemoryIndex, MemoryStyle>
Returns the memory styles associated with this
Artifact
.source§fn table_styles(&self) -> &PrimaryMap<TableIndex, TableStyle>
fn table_styles(&self) -> &PrimaryMap<TableIndex, TableStyle>
Returns the table plans associated with this
Artifact
.source§fn data_initializers(&'a self) -> Self::OwnedDataInitializerIterator
fn data_initializers(&'a self) -> Self::OwnedDataInitializerIterator
Returns data initializers to pass to
VMInstance::initialize
Auto Trait Implementations§
impl Freeze for ArtifactBuildVariant
impl RefUnwindSafe for ArtifactBuildVariant
impl Send for ArtifactBuildVariant
impl Sync for ArtifactBuildVariant
impl Unpin for ArtifactBuildVariant
impl UnwindSafe for ArtifactBuildVariant
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.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T> Pointee for T
impl<T> Pointee for T
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref