Struct rustc_codegen_llvm::back::archive::LlvmArchiveBuilder [−][src]
pub struct LlvmArchiveBuilder<'a> {
config: ArchiveConfig<'a>,
removals: Vec<String>,
additions: Vec<Addition>,
should_update_symbols: bool,
src_archive: Option<Option<ArchiveRO>>,
}
Expand description
Helper for adding many files to an archive.
Fields
config: ArchiveConfig<'a>
removals: Vec<String>
additions: Vec<Addition>
should_update_symbols: bool
src_archive: Option<Option<ArchiveRO>>
Implementations
Trait Implementations
Creates a new static archive, ready for modifying the archive specified
by config
.
Removes a file from this archive
Indicate that the next call to build
should update all symbols in
the archive (equivalent to running ‘ar s’ over it).
fn add_archive<F>(&mut self, archive: &Path, skip: F) -> Result<()> where
F: FnMut(&str) -> bool + 'static,
fn inject_dll_import_lib(
&mut self,
lib_name: &str,
dll_imports: &[DllImport],
tmpdir: &MaybeTempDir
)
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LlvmArchiveBuilder<'a>
impl<'a> !Send for LlvmArchiveBuilder<'a>
impl<'a> !Sync for LlvmArchiveBuilder<'a>
impl<'a> Unpin for LlvmArchiveBuilder<'a>
impl<'a> !UnwindSafe for LlvmArchiveBuilder<'a>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 128 bytes