Struct mun_memory::gc::GcRootPtr [−][src]
A GcPtr
that automatically roots and unroots its internal GcPtr
.
Implementations
impl<T: TypeMemory + TypeTrace, G: GcRuntime<T>> GcRootPtr<T, G>
[src]
pub fn new(runtime: &Arc<G>, handle: GcPtr) -> Self
[src]
Constructs a new GCRootHandle from a runtime and a handle
pub fn handle(&self) -> GcPtr
[src]
Returns the handle of this instance
pub fn unroot(self) -> GcPtr
[src]
Unroots the handle consuming self and returning the unrooted handle
Trait Implementations
impl<T: TypeMemory + TypeTrace, G: GcRuntime<T>> Clone for GcRootPtr<T, G>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: TypeMemory + TypeTrace, G: GcRuntime<T>> Drop for GcRootPtr<T, G>
[src]
impl<T: TypeMemory + TypeTrace, G: GcRuntime<T>> HasIndirectionPtr for GcRootPtr<T, G>
[src]
unsafe fn deref<R: Sized>(&self) -> *const R
[src]
unsafe fn deref_mut<T: Sized>(&mut self) -> *mut T
[src]
impl<T: TypeMemory + TypeTrace, G: GcRuntime<T>> Into<GcPtr> for GcRootPtr<T, G>
[src]
Auto Trait Implementations
impl<T, G> RefUnwindSafe for GcRootPtr<T, G> where
G: RefUnwindSafe,
T: RefUnwindSafe,
G: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, G> Send for GcRootPtr<T, G>
impl<T, G> Sync for GcRootPtr<T, G>
impl<T, G> Unpin for GcRootPtr<T, G> where
T: Unpin,
T: Unpin,
impl<T, G> UnwindSafe for GcRootPtr<T, G> where
G: RefUnwindSafe,
T: UnwindSafe,
G: RefUnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,