Skip to main content

ObjectWriter

Trait ObjectWriter 

Source
pub trait ObjectWriter {
    // Required method
    fn write_object_file(
        &mut self,
        path: &Path,
        req: &ObjectWriteRequest<'_>,
    ) -> Result<(), RasError>;
}
Expand description

Backend for writing relocatable object files (ELF, Mach-O, or COFF/PE).

Required Methods§

Source

fn write_object_file( &mut self, path: &Path, req: &ObjectWriteRequest<'_>, ) -> Result<(), RasError>

Write a relocatable object file to path.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§