Struct lldb::SBCompileUnit
source · [−]pub struct SBCompileUnit {
pub raw: SBCompileUnitRef,
}
Expand description
A compilation unit or compiled source file.
Fields
raw: SBCompileUnitRef
The underlying raw SBCompileUnitRef
.
Implementations
sourceimpl SBCompileUnit
impl SBCompileUnit
sourcepub fn filespec(&self) -> SBFileSpec
pub fn filespec(&self) -> SBFileSpec
The source file for the compile unit.
sourcepub fn line_entries(&self) -> SBCompileUnitLineEntryIter<'_>
pub fn line_entries(&self) -> SBCompileUnitLineEntryIter<'_>
The line entries for the compilation unit.
These come from the line table in the debug data.
sourcepub fn types(&self, type_mask: TypeClass) -> SBTypeList
pub fn types(&self, type_mask: TypeClass) -> SBTypeList
Get all types matching type_mask
from the debug info in this
compile unit.
type_mask
is a bitfield consisting of one or more type classes.
This allows you to request only structure types, or only class,
structure, and union types. Passing in TypeClass::ANY
will
return all types found in the debug information for this compile
unit.
sourcepub fn language(&self) -> LanguageType
pub fn language(&self) -> LanguageType
The language for the compile unit.
Trait Implementations
sourceimpl Clone for SBCompileUnit
impl Clone for SBCompileUnit
sourcefn clone(&self) -> SBCompileUnit
fn clone(&self) -> SBCompileUnit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SBCompileUnit
impl Debug for SBCompileUnit
sourceimpl Drop for SBCompileUnit
impl Drop for SBCompileUnit
impl Send for SBCompileUnit
impl Sync for SBCompileUnit
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more