#[non_exhaustive]pub enum Object<'a> {
Elf(Elf<'a>),
PE(PE<'a>),
TE(TE<'a>),
COFF(Coff<'a>),
Mach(Mach<'a>),
Archive(Archive<'a>),
Unknown(u64),
}
Expand description
A parseable object that goblin understands
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.
Elf(Elf<'a>)
An ELF32/ELF64!
PE(PE<'a>)
A PE32/PE32+!
TE(TE<'a>)
A TE!
COFF(Coff<'a>)
A COFF
Mach(Mach<'a>)
A 32/64-bit Mach-o binary OR it is a multi-architecture binary container!
Archive(Archive<'a>)
A Unix archive
Unknown(u64)
None of the above, with the given magic value
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Object<'a>
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> Send for Object<'a>
impl<'a> Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnwindSafe for Object<'a>
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