pub struct ArchiveFile<'data, R: ReadRef<'data> = &'data [u8]> { /* private fields */ }
Expand description
A partially parsed archive file.
Implementations§
Source§impl<'data, R: ReadRef<'data>> ArchiveFile<'data, R>
impl<'data, R: ReadRef<'data>> ArchiveFile<'data, R>
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