pub struct ObjectFile {
pub format: ObjectFormat,
pub elf_machine: u16,
pub coff_machine: u16,
pub sections: Vec<Section>,
pub symbols: Vec<Symbol>,
}Expand description
Assembled object file ready to be written to disk or passed to a linker.
Fields§
§format: ObjectFormatPublic API for format.
elf_machine: u16ELF e_machine value when format == ObjectFormat::Elf.
Ignored for Mach-O.
coff_machine: u16COFF Machine field when format == ObjectFormat::Coff.
sections: Vec<Section>Public API for sections.
symbols: Vec<Symbol>Public API for symbols.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectFile
impl Clone for ObjectFile
Source§fn clone(&self) -> ObjectFile
fn clone(&self) -> ObjectFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObjectFile
impl RefUnwindSafe for ObjectFile
impl Send for ObjectFile
impl Sync for ObjectFile
impl Unpin for ObjectFile
impl UnsafeUnpin for ObjectFile
impl UnwindSafe for ObjectFile
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