Struct polkavm_common::program::RegionInfo
source · pub struct RegionInfo<'a> { /* private fields */ }
Expand description
Debug information about a given region of bytecode.
Implementations§
source§impl<'a> RegionInfo<'a>
impl<'a> RegionInfo<'a>
sourcepub fn entry_index(&self) -> usize
pub fn entry_index(&self) -> usize
Returns the entry index of this region info within the parent line program object.
sourcepub fn instruction_range(&self) -> Range<u32>
pub fn instruction_range(&self) -> Range<u32>
The range of instructions this region covers.
sourcepub fn frames(&self) -> impl ExactSizeIterator<Item = FrameInfo<'_>>
pub fn frames(&self) -> impl ExactSizeIterator<Item = FrameInfo<'_>>
Returns an iterator over the frames this region covers.
Auto Trait Implementations§
impl<'a> Freeze for RegionInfo<'a>
impl<'a> RefUnwindSafe for RegionInfo<'a>
impl<'a> Send for RegionInfo<'a>
impl<'a> Sync for RegionInfo<'a>
impl<'a> Unpin for RegionInfo<'a>
impl<'a> UnwindSafe for RegionInfo<'a>
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