pub struct PeInMemory { /* private fields */ }
Implementations§
Source§impl PeInMemory
impl PeInMemory
Sourcepub unsafe fn as_slice(&self) -> &'static [u8]
pub unsafe fn as_slice(&self) -> &'static [u8]
Return a reference to the currently running image.
§Safety
The returned slice covers the whole loaded image in which we
currently execute. This means the safety guarantees of
core::slice::from_raw_parts
that we use in this function
are only guaranteed, if we we don’t mutate anything in this
range. This means no modification of global variables or
anything.
Trait Implementations§
Source§impl Clone for PeInMemory
impl Clone for PeInMemory
Source§fn clone(&self) -> PeInMemory
fn clone(&self) -> PeInMemory
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PeInMemory
impl Debug for PeInMemory
impl Copy for PeInMemory
Auto Trait Implementations§
impl Freeze for PeInMemory
impl RefUnwindSafe for PeInMemory
impl !Send for PeInMemory
impl !Sync for PeInMemory
impl Unpin for PeInMemory
impl UnwindSafe for PeInMemory
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