[][src]Struct ddbug_parser::File

pub struct File<'input> { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.