Struct lief::pdb::CompilationUnit

pub struct CompilationUnit<'a> { /* private fields */ }
Expand description

This structure represents a CompilationUnit (or Module) in a PDB file

Implementations§

§

impl CompilationUnit<'_>

pub fn module_name(&self) -> String

Name (or path) to the COFF object (.obj) associated with this compilation unit (e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvlp.obj)

pub fn object_filename(&self) -> String

Name of path to the original binary object (COFF, Archive) in which the compilation unit was located before being linked. e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvl.lib

pub fn functions(&self) -> Functions<'_>

Return an iterator over the crate::pdb::Function defined in this compilation unit. If the PDB does not contain or has an empty DBI stream, it returns an empty iterator.

pub fn sources(&self) -> Sources<'_>

Iterator over the sources files (as string) that compose this compilation unit. These files include the header (.h, .hpp, …).

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CompilationUnit<'a>

§

impl<'a> !Send for CompilationUnit<'a>

§

impl<'a> !Sync for CompilationUnit<'a>

§

impl<'a> Unpin for CompilationUnit<'a>

§

impl<'a> UnwindSafe for CompilationUnit<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.