pub struct UserStackMap { /* private fields */ }
Expand description
A compiled stack map, describing the location of many GC-managed values.
A stack map is associated with a particular instruction, and that instruction is a safepoint.
Implementations§
Source§impl UserStackMap
impl UserStackMap
Sourcepub fn entries(&self) -> impl Iterator<Item = (Type, u32)> + '_
pub fn entries(&self) -> impl Iterator<Item = (Type, u32)> + '_
Iterate over the entries in this stack map.
Yields pairs of the type of GC reference that is at the offset, and the
offset from SP. If a pair (i64, 0x42)
is yielded, for example, then
when execution is at this stack map’s associated PC, SP + 0x42
is a
pointer to an i64
, and that i64
is a live GC reference.
Trait Implementations§
Source§impl Clone for UserStackMap
impl Clone for UserStackMap
Source§fn clone(&self) -> UserStackMap
fn clone(&self) -> UserStackMap
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UserStackMap
impl Debug for UserStackMap
Source§impl PartialEq for UserStackMap
impl PartialEq for UserStackMap
impl StructuralPartialEq for UserStackMap
Auto Trait Implementations§
impl Freeze for UserStackMap
impl RefUnwindSafe for UserStackMap
impl Send for UserStackMap
impl Sync for UserStackMap
impl Unpin for UserStackMap
impl UnwindSafe for UserStackMap
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