#[non_exhaustive]pub enum LoadedImageFormat {
Pe,
Elf,
MachO,
}Expand description
Object format of an image the host loader has mapped into this process.
The facade reports which format the loader hands out; reading the image’s headers and sections is the caller’s job. No object-file parsing lives here (#974): that is format code, not host selection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pe
A PE image whose headers are mapped at LoadedImage::header_address.
Elf
An ELF object described by LoadedImage::mapped_ranges and
LoadedImage::elf_load_bias.
MachO
A Mach-O image whose mach_header is at
LoadedImage::header_address.
Trait Implementations§
Source§impl Clone for LoadedImageFormat
impl Clone for LoadedImageFormat
impl Copy for LoadedImageFormat
Source§impl Debug for LoadedImageFormat
impl Debug for LoadedImageFormat
impl Eq for LoadedImageFormat
Source§impl PartialEq for LoadedImageFormat
impl PartialEq for LoadedImageFormat
impl StructuralPartialEq for LoadedImageFormat
Auto Trait Implementations§
impl Freeze for LoadedImageFormat
impl RefUnwindSafe for LoadedImageFormat
impl Send for LoadedImageFormat
impl Sync for LoadedImageFormat
impl Unpin for LoadedImageFormat
impl UnsafeUnpin for LoadedImageFormat
impl UnwindSafe for LoadedImageFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more