pub struct CodeMemory { /* private fields */ }
Expand description
Memory manager for executable code.
Implementations§
Source§impl CodeMemory
impl CodeMemory
Sourcepub fn unwind_registry_mut(&mut self) -> &mut UnwindRegistry
pub fn unwind_registry_mut(&mut self) -> &mut UnwindRegistry
Mutably get the UnwindRegistry.
Sourcepub fn allocate(
&mut self,
functions: &[FunctionBodyRef<'_>],
executable_sections: &[CustomSectionRef<'_>],
data_sections: &[CustomSectionRef<'_>],
) -> Result<(Vec<&mut [VMFunctionBody]>, Vec<&mut [u8]>, Vec<&mut [u8]>), String>
pub fn allocate( &mut self, functions: &[FunctionBodyRef<'_>], executable_sections: &[CustomSectionRef<'_>], data_sections: &[CustomSectionRef<'_>], ) -> Result<(Vec<&mut [VMFunctionBody]>, Vec<&mut [u8]>, Vec<&mut [u8]>), String>
Allocate a single contiguous block of memory for the functions and custom sections, and copy the data in place.
Auto Trait Implementations§
impl Freeze for CodeMemory
impl RefUnwindSafe for CodeMemory
impl Send for CodeMemory
impl Sync for CodeMemory
impl Unpin for CodeMemory
impl UnwindSafe for CodeMemory
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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