pub struct CallInfoCursor(/* private fields */);Expand description
Nullable traversal position in a thread’s call-info array.
Unsafe navigation requires both cursors to belong to the same live array; reallocation or thread destruction invalidates every cursor.
Implementations§
Source§impl CallInfoCursor
impl CallInfoCursor
Sourcepub const fn as_ptr(&self) -> *mut RawCallInfo
pub const fn as_ptr(&self) -> *mut RawCallInfo
Returns the current traversal address, which may be null.
CallInfo array growth invalidates cursors into the old allocation.
pub const fn from_ptr(raw: *mut RawCallInfo) -> Self
pub const fn is_null(&self) -> bool
pub unsafe fn call_info_unchecked(&self) -> CallInfo
pub fn call_info(&self) -> Option<CallInfo>
pub unsafe fn add(self, count: usize) -> Self
pub unsafe fn sub(self, count: usize) -> Self
pub unsafe fn offset(self, count: isize) -> Self
pub unsafe fn offset_from(self, other: Self) -> isize
Trait Implementations§
Source§impl AsRef<CallInfoCursor> for CallInfoCursor
impl AsRef<CallInfoCursor> for CallInfoCursor
Source§fn as_ref(&self) -> &CallInfoCursor
fn as_ref(&self) -> &CallInfoCursor
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CallInfoCursor
impl Clone for CallInfoCursor
Source§fn clone(&self) -> CallInfoCursor
fn clone(&self) -> CallInfoCursor
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 moreimpl Copy for CallInfoCursor
impl Eq for CallInfoCursor
Source§impl Ord for CallInfoCursor
impl Ord for CallInfoCursor
Source§fn cmp(&self, other: &CallInfoCursor) -> Ordering
fn cmp(&self, other: &CallInfoCursor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CallInfoCursor
impl PartialEq for CallInfoCursor
Source§impl PartialOrd for CallInfoCursor
impl PartialOrd for CallInfoCursor
impl StructuralPartialEq for CallInfoCursor
Auto Trait Implementations§
impl !Send for CallInfoCursor
impl !Sync for CallInfoCursor
impl Freeze for CallInfoCursor
impl RefUnwindSafe for CallInfoCursor
impl Unpin for CallInfoCursor
impl UnsafeUnpin for CallInfoCursor
impl UnwindSafe for CallInfoCursor
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