Struct wasmer_compiler::CompileModuleInfo [−][src]
pub struct CompileModuleInfo {
pub features: Features,
pub module: Arc<ModuleInfo>,
pub memory_styles: PrimaryMap<MemoryIndex, MemoryStyle>,
pub table_styles: PrimaryMap<TableIndex, TableStyle>,
}Expand description
The required info for compiling a module.
This differs from ModuleInfo because it have extra info only
possible after translation (such as the features used for compiling,
or the MemoryStyle and TableStyle).
Fields
features: FeaturesThe features used for compiling the module
module: Arc<ModuleInfo>The module information
memory_styles: PrimaryMap<MemoryIndex, MemoryStyle>The memory styles used for compiling.
The compiler will emit the most optimal code based on the memory style (static or dynamic) chosen.
table_styles: PrimaryMap<TableIndex, TableStyle>The table plans used for compiling.
Trait Implementations
impl Archive for CompileModuleInfo where
Features: Archive,
Arc<ModuleInfo>: Archive,
PrimaryMap<MemoryIndex, MemoryStyle>: Archive,
PrimaryMap<TableIndex, TableStyle>: Archive, [src]
impl Archive for CompileModuleInfo where
Features: Archive,
Arc<ModuleInfo>: Archive,
PrimaryMap<MemoryIndex, MemoryStyle>: Archive,
PrimaryMap<TableIndex, TableStyle>: Archive, [src]impl Debug for CompileModuleInfo[src]
impl Debug for CompileModuleInfo[src]impl<'de> Deserialize<'de> for CompileModuleInfo[src]
impl<'de> Deserialize<'de> for CompileModuleInfo[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 MemoryUsage for CompileModuleInfo[src]
impl MemoryUsage for CompileModuleInfo[src]fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize[src]
fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize[src]Returns the size of the referenced value in bytes. Read more
impl PartialEq<CompileModuleInfo> for CompileModuleInfo[src]
impl PartialEq<CompileModuleInfo> for CompileModuleInfo[src]fn eq(&self, other: &CompileModuleInfo) -> bool[src]
fn eq(&self, other: &CompileModuleInfo) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &CompileModuleInfo) -> bool[src]
fn ne(&self, other: &CompileModuleInfo) -> bool[src]This method tests for !=.
impl Serialize for CompileModuleInfo[src]
impl Serialize for CompileModuleInfo[src]impl<__S: Fallible + ?Sized> Serialize<__S> for CompileModuleInfo where
Features: Serialize<__S>,
Arc<ModuleInfo>: Serialize<__S>,
PrimaryMap<MemoryIndex, MemoryStyle>: Serialize<__S>,
PrimaryMap<TableIndex, TableStyle>: Serialize<__S>, [src]
impl<__S: Fallible + ?Sized> Serialize<__S> for CompileModuleInfo where
Features: Serialize<__S>,
Arc<ModuleInfo>: Serialize<__S>,
PrimaryMap<MemoryIndex, MemoryStyle>: Serialize<__S>,
PrimaryMap<TableIndex, TableStyle>: Serialize<__S>, [src]impl Eq for CompileModuleInfo[src]
impl StructuralEq for CompileModuleInfo[src]
impl StructuralPartialEq for CompileModuleInfo[src]
Auto Trait Implementations
impl RefUnwindSafe for CompileModuleInfo
impl Send for CompileModuleInfo
impl Sync for CompileModuleInfo
impl Unpin for CompileModuleInfo
impl UnwindSafe for CompileModuleInfo
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> ArchiveUnsized for T where
T: Archive, [src]
impl<T> ArchiveUnsized for T where
T: Archive, [src]type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::ArchivedThe archived counterpart of this type. Unlike Archive, it may be unsized.
type MetadataResolver = ()
type MetadataResolver = ()The resolver for the metadata of this type.
pub fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
&mut MaybeUninit<<<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata>
)[src]
pub fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
&mut MaybeUninit<<<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata>
)[src]Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
fn resolve_unsized(
&self,
from: usize,
to: usize,
resolver: Self::MetadataResolver,
out: &mut MaybeUninit<RelPtr<Self::Archived>>
)[src]
fn resolve_unsized(
&self,
from: usize,
to: usize,
resolver: Self::MetadataResolver,
out: &mut MaybeUninit<RelPtr<Self::Archived>>
)[src]Resolves a relative pointer to this value with the given from and to and writes it to
the given output. Read more
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, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized, [src]
impl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized, [src]pub fn serialize_unsized(
&self,
serializer: &mut S
) -> Result<usize, <S as Fallible>::Error>[src]
pub fn serialize_unsized(
&self,
serializer: &mut S
) -> Result<usize, <S as Fallible>::Error>[src]Writes the object and returns the position of the archived type.
pub fn serialize_metadata(
&self,
&mut S
) -> Result<<<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, <S as Fallible>::Error>[src]
pub fn serialize_metadata(
&self,
&mut S
) -> Result<<<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, <S as Fallible>::Error>[src]Serializes the metadata for the given type.
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,