[−][src]Struct ddbug_parser::File
The parsed debuginfo for a single file.
Implementations
impl<'input> File<'input>
[src]
pub fn parse<Cb>(path: &str, cb: Cb) -> Result<()> where
Cb: FnOnce(&File<'_>) -> Result<()>,
[src]
Cb: FnOnce(&File<'_>) -> Result<()>,
Parse the file with the given path.
cb
is a callback function that is called with the parsed File.
It requires a callback so that memory management is simplified.
pub fn path(&self) -> &'input str
[src]
The file path.
pub fn machine(&self) -> Architecture
[src]
The machine type that the file contains debuginfo for.
pub fn segment_bytes(&self, range: Range) -> Option<&'input [u8]>
[src]
Find the segment data for the given address range.
pub fn segments(&self) -> &[Segment<'input>]
[src]
A list of segments in the file.
pub fn sections(&self) -> &[Section<'input>]
[src]
A list of sections in the file.
pub fn relocations(&self) -> &[Relocation<'input>]
[src]
A list of relocations in the file.
pub fn units(&self) -> &[Unit<'input>]
[src]
A list of compilation units in the file.
pub fn ranges(&self, hash: &FileHash<'_>) -> RangeList
[src]
A list of address ranges covered by the compilation units.
This includes both Unit::ranges
and Unit::unknown_ranges
.
pub fn function_size(&self) -> u64
[src]
The total size of functions in all compilation units.
pub fn variable_size(&self, hash: &FileHash<'_>) -> u64
[src]
The total size of variables in all compilation units.
Auto Trait Implementations
impl<'input> !RefUnwindSafe for File<'input>
[src]
impl<'input> !Send for File<'input>
[src]
impl<'input> !Sync for File<'input>
[src]
impl<'input> Unpin for File<'input>
[src]
impl<'input> !UnwindSafe for File<'input>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,