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
Source§type OwnedDataInitializer = OwnedDataInitializerVariant<'a>
type OwnedDataInitializer = OwnedDataInitializerVariant<'a>
Type of
OwnedDataInitializer returned by the data_initializers methodSource§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::initializeAuto 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, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§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