pub struct SBBlock {
pub raw: SBBlockRef,
}
Expand description
A lexical block.
Fields
raw: SBBlockRef
The underlying raw SBBlockRef
.
Implementations
sourceimpl SBBlock
impl SBBlock
sourcepub fn is_inlined(&self) -> bool
pub fn is_inlined(&self) -> bool
Does this block represent an inlined function?
sourcepub fn inlined_name(&self) -> &str
pub fn inlined_name(&self) -> &str
Get the function name if this block represents an inlined function.
sourcepub fn inlined_call_site_file(&self) -> Option<SBFileSpec>
pub fn inlined_call_site_file(&self) -> Option<SBFileSpec>
Get the call site file if this block represents an inlined function.
sourcepub fn inlined_call_site_line(&self) -> Option<u32>
pub fn inlined_call_site_line(&self) -> Option<u32>
Get the call site line number if this block represents an inlined function.
sourcepub fn inlined_call_site_column(&self) -> Option<u32>
pub fn inlined_call_site_column(&self) -> Option<u32>
Get the call site column number if this block represents an inlined function.
sourcepub fn containing_inlined_block(&self) -> Option<SBBlock>
pub fn containing_inlined_block(&self) -> Option<SBBlock>
Get the inlined block that is or contains this block.
sourcepub fn first_child(&self) -> Option<SBBlock>
pub fn first_child(&self) -> Option<SBBlock>
Get the first child block for this block.
sourcepub fn num_ranges(&self) -> u32
pub fn num_ranges(&self) -> u32
The number of address ranges associated with this block.
sourcepub fn range_start_address(&self, idx: u32) -> SBAddress
pub fn range_start_address(&self, idx: u32) -> SBAddress
Get the start address of an address range.
sourcepub fn range_end_address(&self, idx: u32) -> SBAddress
pub fn range_end_address(&self, idx: u32) -> SBAddress
Get the end address of an address range.
sourcepub fn range_index_for_block_address(&self, block_address: &SBAddress) -> u32
pub fn range_index_for_block_address(&self, block_address: &SBAddress) -> u32
Given an address, find out which address range it is part of.
Trait Implementations
impl Send for SBBlock
impl Sync for SBBlock
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