pub struct Unit<'input> { /* private fields */ }
Expand description
A compilation unit.
Implementations§
Source§impl<'input> Unit<'input>
impl<'input> Unit<'input>
Sourcepub fn ranges(&self, hash: &FileHash<'_>) -> RangeList
pub fn ranges(&self, hash: &FileHash<'_>) -> RangeList
The address ranges covered by functions and variables in the unit.
Does not include unknown ranges.
Sourcepub fn unknown_ranges(&self, hash: &FileHash<'_>) -> RangeList
pub fn unknown_ranges(&self, hash: &FileHash<'_>) -> RangeList
The address ranges covered that are covered by the unit, but which are not known to be associated with any functions or variables.
Sourcepub fn function_size(&self) -> u64
pub fn function_size(&self) -> u64
The total size of all functions.
Sourcepub fn variable_size(&self, hash: &FileHash<'_>) -> u64
pub fn variable_size(&self, hash: &FileHash<'_>) -> u64
The total size of all variables.
Trait Implementations§
Auto Trait Implementations§
impl<'input> !Freeze for Unit<'input>
impl<'input> RefUnwindSafe for Unit<'input>
impl<'input> Send for Unit<'input>
impl<'input> Sync for Unit<'input>
impl<'input> Unpin for Unit<'input>
impl<'input> UnwindSafe for Unit<'input>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more