pub struct SBBlock {
pub raw: SBBlockRef,
}Expand description
A lexical block.
Fields§
§raw: SBBlockRefThe underlying raw SBBlockRef.
Implementations§
Source§impl 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§
impl Freeze for SBBlock
impl RefUnwindSafe for SBBlock
impl Unpin for SBBlock
impl UnwindSafe for SBBlock
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