pub struct SBCompileUnit {
pub raw: SBCompileUnitRef,
}
Expand description
A compilation unit or compiled source file.
Fields§
§raw: SBCompileUnitRef
The underlying raw SBCompileUnitRef
.
Implementations§
Source§impl 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§
Source§impl Clone for SBCompileUnit
impl Clone for SBCompileUnit
Source§fn clone(&self) -> SBCompileUnit
fn clone(&self) -> SBCompileUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SBCompileUnit
impl Debug for SBCompileUnit
Source§impl Drop for SBCompileUnit
impl Drop for SBCompileUnit
impl Send for SBCompileUnit
impl Sync for SBCompileUnit
Auto Trait Implementations§
impl Freeze for SBCompileUnit
impl RefUnwindSafe for SBCompileUnit
impl Unpin for SBCompileUnit
impl UnwindSafe for SBCompileUnit
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