Struct wasmer_compiler::CompiledFunction
source · [−]pub struct CompiledFunction {
pub body: FunctionBody,
pub relocations: Vec<Relocation>,
pub jt_offsets: JumpTableOffsets,
pub frame_info: CompiledFunctionFrameInfo,
}
Expand description
The result of compiling a WebAssembly function.
This structure only have the compiled information data (function bytecode body, relocations, traps, jump tables and unwind information).
Fields
body: FunctionBody
The function body.
relocations: Vec<Relocation>
The relocations (in the body)
jt_offsets: JumpTableOffsets
The jump tables offsets (in the body).
frame_info: CompiledFunctionFrameInfo
The frame information.
Trait Implementations
impl Archive for CompiledFunction where
FunctionBody: Archive,
Vec<Relocation>: Archive,
JumpTableOffsets: Archive,
CompiledFunctionFrameInfo: Archive,
impl Archive for CompiledFunction where
FunctionBody: Archive,
Vec<Relocation>: Archive,
JumpTableOffsets: Archive,
CompiledFunctionFrameInfo: Archive,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<__D: Fallible + ?Sized> Deserialize<CompiledFunction, __D> for Archived<CompiledFunction> where
FunctionBody: Archive,
Archived<FunctionBody>: Deserialize<FunctionBody, __D>,
Vec<Relocation>: Archive,
Archived<Vec<Relocation>>: Deserialize<Vec<Relocation>, __D>,
JumpTableOffsets: Archive,
Archived<JumpTableOffsets>: Deserialize<JumpTableOffsets, __D>,
CompiledFunctionFrameInfo: Archive,
Archived<CompiledFunctionFrameInfo>: Deserialize<CompiledFunctionFrameInfo, __D>,
impl<__D: Fallible + ?Sized> Deserialize<CompiledFunction, __D> for Archived<CompiledFunction> where
FunctionBody: Archive,
Archived<FunctionBody>: Deserialize<FunctionBody, __D>,
Vec<Relocation>: Archive,
Archived<Vec<Relocation>>: Deserialize<Vec<Relocation>, __D>,
JumpTableOffsets: Archive,
Archived<JumpTableOffsets>: Deserialize<JumpTableOffsets, __D>,
CompiledFunctionFrameInfo: Archive,
Archived<CompiledFunctionFrameInfo>: Deserialize<CompiledFunctionFrameInfo, __D>,
Deserializes using the given deserializer
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<__S: Fallible + ?Sized> Serialize<__S> for CompiledFunction where
FunctionBody: Serialize<__S>,
Vec<Relocation>: Serialize<__S>,
JumpTableOffsets: Serialize<__S>,
CompiledFunctionFrameInfo: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for CompiledFunction where
FunctionBody: Serialize<__S>,
Vec<Relocation>: Serialize<__S>,
JumpTableOffsets: Serialize<__S>,
CompiledFunctionFrameInfo: Serialize<__S>,
Auto Trait Implementations
impl RefUnwindSafe for CompiledFunction
impl Send for CompiledFunction
impl Sync for CompiledFunction
impl Unpin for CompiledFunction
impl UnwindSafe for CompiledFunction
Blanket Implementations
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.
The archived counterpart of this type. Unlike Archive
, it may be unsized. Read more
type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
pub unsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
pub unsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
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,
Compare self to key
and return true
if they are equal.