#[non_exhaustive]pub struct StackPoolEntryRef<'a> {
pub pool_id: u32,
pub frames_le: &'a [u8],
}Expand description
Zero-copy stack-frame pool entry borrowing from the input buffer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pool_id: u32Pool ID assigned by the encoder.
frames_le: &'a [u8]Raw u64-LE bytes borrowed from the decode buffer.
Implementations§
Source§impl<'a> StackPoolEntryRef<'a>
impl<'a> StackPoolEntryRef<'a>
Sourcepub fn frame_count(&self) -> u32
pub fn frame_count(&self) -> u32
Number of frames in the entry.
Sourcepub fn iter(&self) -> StackFrameIter<'a> ⓘ
pub fn iter(&self) -> StackFrameIter<'a> ⓘ
Iterate the stack frame addresses.
Sourcepub fn to_stack_frames(&self) -> StackFrames
pub fn to_stack_frames(&self) -> StackFrames
Collect into an owned StackFrames.
Trait Implementations§
Source§impl<'a> Clone for StackPoolEntryRef<'a>
impl<'a> Clone for StackPoolEntryRef<'a>
Source§fn clone(&self) -> StackPoolEntryRef<'a>
fn clone(&self) -> StackPoolEntryRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for StackPoolEntryRef<'a>
impl<'a> Debug for StackPoolEntryRef<'a>
Source§impl<'a> PartialEq for StackPoolEntryRef<'a>
impl<'a> PartialEq for StackPoolEntryRef<'a>
Source§fn eq(&self, other: &StackPoolEntryRef<'a>) -> bool
fn eq(&self, other: &StackPoolEntryRef<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for StackPoolEntryRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for StackPoolEntryRef<'a>
impl<'a> RefUnwindSafe for StackPoolEntryRef<'a>
impl<'a> Send for StackPoolEntryRef<'a>
impl<'a> Sync for StackPoolEntryRef<'a>
impl<'a> Unpin for StackPoolEntryRef<'a>
impl<'a> UnsafeUnpin for StackPoolEntryRef<'a>
impl<'a> UnwindSafe for StackPoolEntryRef<'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