Struct symbolic::debuginfo::Archive [−][src]
pub struct Archive<'d>(_);
Expand description
A generic archive that can contain one or more object files.
Effectively, this will only contain a single object for all file types other than MachO
. Mach
objects can either be single object files or so-called fat files that contain multiple objects
per architecture.
Implementations
Tries to infer the object archive type from the start of the given buffer.
Tries to parse a generic archive from the given slice.
The container format of this file.
pub fn objects(&self) -> ObjectIterator<'d, '_>ⓘNotable traits for ObjectIterator<'d, 'a>impl<'d, 'a> Iterator for ObjectIterator<'d, 'a> type Item = Result<Object<'d>, ObjectError>;
pub fn objects(&self) -> ObjectIterator<'d, '_>ⓘNotable traits for ObjectIterator<'d, 'a>impl<'d, 'a> Iterator for ObjectIterator<'d, 'a> type Item = Result<Object<'d>, ObjectError>;
impl<'d, 'a> Iterator for ObjectIterator<'d, 'a> type Item = Result<Object<'d>, ObjectError>;
Returns an iterator over all objects contained in this archive.
Returns the number of objects in this archive.
Resolves the object at the given index.
Returns Ok(None)
if the index is out of bounds, or Err
if the object exists but cannot
be parsed.
Trait Implementations
Auto Trait Implementations
impl<'d> !RefUnwindSafe for Archive<'d>
impl<'d> !UnwindSafe for Archive<'d>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
pub fn extract_context(self, _original_input: I)
pub fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
pub fn recreate_context(_original_input: I, tail: I) -> I
pub fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more