Struct object::read::archive::ArchiveFile
source · pub struct ArchiveFile<'data, R: ReadRef<'data> = &'data [u8]> {
data: R,
kind: ArchiveKind,
members: Members<'data>,
symbols: (u64, u64),
names: &'data [u8],
thin: bool,
}
Expand description
A partially parsed archive file.
Fields§
§data: R
§kind: ArchiveKind
§members: Members<'data>
§symbols: (u64, u64)
§names: &'data [u8]
§thin: bool
Implementations§
source§impl<'data, R: ReadRef<'data>> ArchiveFile<'data, R>
impl<'data, R: ReadRef<'data>> ArchiveFile<'data, R>
fn parse_aixbig(data: R) -> Result<Self>
sourcepub fn kind(&self) -> ArchiveKind
pub fn kind(&self) -> ArchiveKind
Return the archive format.
sourcepub fn members(&self) -> ArchiveMemberIterator<'data, R> ⓘ
pub fn members(&self) -> ArchiveMemberIterator<'data, R> ⓘ
Iterate over the members of the archive.
This does not return special members.
sourcepub fn member(&self, member: ArchiveOffset) -> Result<ArchiveMember<'data>>
pub fn member(&self, member: ArchiveOffset) -> Result<ArchiveMember<'data>>
Return the member at the given offset.
sourcepub fn symbols(&self) -> Result<Option<ArchiveSymbolIterator<'data>>>
pub fn symbols(&self) -> Result<Option<ArchiveSymbolIterator<'data>>>
Iterate over the symbols in the archive.
Trait Implementations§
source§impl<'data, R: Clone + ReadRef<'data>> Clone for ArchiveFile<'data, R>
impl<'data, R: Clone + ReadRef<'data>> Clone for ArchiveFile<'data, R>
source§fn clone(&self) -> ArchiveFile<'data, R>
fn clone(&self) -> ArchiveFile<'data, R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'data, R: Copy + ReadRef<'data>> Copy for ArchiveFile<'data, R>
Auto Trait Implementations§
impl<'data, R> Freeze for ArchiveFile<'data, R>where
R: Freeze,
impl<'data, R> RefUnwindSafe for ArchiveFile<'data, R>where
R: RefUnwindSafe,
impl<'data, R> Send for ArchiveFile<'data, R>where
R: Send,
impl<'data, R> Sync for ArchiveFile<'data, R>where
R: Sync,
impl<'data, R> Unpin for ArchiveFile<'data, R>where
R: Unpin,
impl<'data, R> UnwindSafe for ArchiveFile<'data, R>where
R: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)