[][src]Trait mun_memory::gc::HasIndirectionPtr

pub trait HasIndirectionPtr {
    unsafe fn deref<T: Sized>(&self) -> *const T;

    unsafe fn deref_mut<T: Sized>(&mut self) -> *mut T { ... }
}

Required methods

unsafe fn deref<T: Sized>(&self) -> *const T

Returns a pointer to the referenced memory.

Safety

This is an unsafe method because derefencing could result in an access violation.

Loading content...

Provided methods

unsafe fn deref_mut<T: Sized>(&mut self) -> *mut T

Returns a mutable pointer to the referenced memory.

Safety

This is an unsafe method because derefencing could result in an access violation.

Loading content...

Implementors

impl HasIndirectionPtr for GcPtr[src]

impl<T: TypeMemory + TypeTrace, G: GcRuntime<T>> HasIndirectionPtr for GcRootPtr<T, G>[src]

Loading content...