[][src]Struct ddbug_parser::Unit

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

A compilation unit.

Implementations

impl<'input> Unit<'input>[src]

pub fn dir(&self) -> Option<&str>[src]

The working directory when the unit was compiled.

pub fn name(&self) -> Option<&str>[src]

The path of the primary source file.

pub fn language(&self) -> Option<DwLang>[src]

The source language.

pub fn address(&self) -> Option<u64>[src]

The base address.

pub fn ranges(&self, hash: &FileHash<'_>) -> RangeList[src]

The address ranges covered by functions and variables in the unit.

Does not include unknown ranges.

pub fn unknown_ranges(&self, hash: &FileHash<'_>) -> RangeList[src]

The address ranges covered that are covered by the unit, but which are not known to be associated with any functions or variables.

pub fn size(&self, hash: &FileHash<'_>) -> u64[src]

The total size of all functions and variables.

pub fn function_size(&self) -> u64[src]

The total size of all functions.

pub fn variable_size(&self, hash: &FileHash<'_>) -> u64[src]

The total size of all variables.

pub fn types(&self) -> &[Type<'input>][src]

The types declared or defined by this unit.

pub fn functions(&self) -> &[Function<'input>][src]

The functions declared or defined by this unit.

pub fn variables(&self) -> &[Variable<'input>][src]

The variables declared or defined by this unit.

Trait Implementations

impl<'input> Debug for Unit<'input>[src]

impl<'input> Default for Unit<'input>[src]

Auto Trait Implementations

impl<'input> !RefUnwindSafe for Unit<'input>[src]

impl<'input> !Send for Unit<'input>[src]

impl<'input> !Sync for Unit<'input>[src]

impl<'input> Unpin for Unit<'input>[src]

impl<'input> !UnwindSafe for Unit<'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.