pub struct PeekPointer<'mem, 'facet> { /* private fields */ }Expand description
Represents a pointer that can be peeked at during memory inspection.
This struct holds the value being pointed to and the definition of the pointer type.
Implementations§
Source§impl<'mem, 'facet> PeekPointer<'mem, 'facet>
impl<'mem, 'facet> PeekPointer<'mem, 'facet>
Sourcepub fn def(&self) -> &PointerDef
pub fn def(&self) -> &PointerDef
Returns a reference to the pointer definition.
Sourcepub fn borrow_inner(&self) -> Option<Peek<'mem, 'facet>>
pub fn borrow_inner(&self) -> Option<Peek<'mem, 'facet>>
Borrows the inner value of the pointer.
Returns None if the pointer doesn’t have a borrow function or pointee shape.
Auto Trait Implementations§
impl<'mem, 'facet> Freeze for PeekPointer<'mem, 'facet>
impl<'mem, 'facet> RefUnwindSafe for PeekPointer<'mem, 'facet>
impl<'mem, 'facet> !Send for PeekPointer<'mem, 'facet>
impl<'mem, 'facet> !Sync for PeekPointer<'mem, 'facet>
impl<'mem, 'facet> Unpin for PeekPointer<'mem, 'facet>
impl<'mem, 'facet> UnwindSafe for PeekPointer<'mem, 'facet>
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