pub struct LoadedPatchableCode { /* private fields */ }Implementations§
Source§impl LoadedPatchableCode
impl LoadedPatchableCode
pub fn patch_catalog(&self) -> &PatchCatalog
pub const fn rx(&self) -> *const u8
pub const fn rw(&self) -> *mut u8
pub const fn span(&self) -> &Span
pub fn retarget_site( &mut self, jit_allocator: &mut JitAllocator, id: PatchSiteId, target_offset: CodeOffset, ) -> Result<(), AsmError>
pub fn rewrite_block( &mut self, jit_allocator: &mut JitAllocator, id: PatchBlockId, bytes: &[u8], ) -> Result<(), AsmError>
Auto Trait Implementations§
impl Freeze for LoadedPatchableCode
impl RefUnwindSafe for LoadedPatchableCode
impl !Send for LoadedPatchableCode
impl !Sync for LoadedPatchableCode
impl Unpin for LoadedPatchableCode
impl UnsafeUnpin for LoadedPatchableCode
impl UnwindSafe for LoadedPatchableCode
Blanket Implementations§
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