Enum goblin::Object

source ·
pub enum Object<'a> {
    Elf(Elf<'a>),
    PE(PE<'a>),
    Mach(Mach<'a>),
    Archive(Archive<'a>),
    Unknown(u64),
}
Expand description

A parseable object that goblin understands

Variants

Elf(Elf<'a>)

An ELF32/ELF64!

PE(PE<'a>)

A PE32/PE32+!

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

Tries to parse an Object from bytes

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.