Struct rustc_codegen_llvm::llvm::archive_ro::ArchiveRO
source · pub struct ArchiveRO {
pub raw: &'static mut Archive,
}
Fields§
§raw: &'static mut Archive
Implementations§
source§impl ArchiveRO
impl ArchiveRO
sourcepub fn open(dst: &Path) -> Result<ArchiveRO, String>
pub fn open(dst: &Path) -> Result<ArchiveRO, String>
Opens a static archive for read-only purposes. This is more optimized
than the open
method because it uses LLVM’s internal Archive
class
rather than shelling out to ar
for everything.
If this archive is used with a mutable method, then an error will be raised.
pub fn iter(&self) -> Iter<'_> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ArchiveRO
impl !Sync for ArchiveRO
impl Unpin for ArchiveRO
impl !UnwindSafe for ArchiveRO
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
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: 8 bytes