[−][src]Struct ddbug_parser::Unit
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
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]
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>,