Struct cell_gc::GcRef [] [src]

pub struct GcRef<'h, T: IntoHeapAllocation<'h>> { /* fields omitted */ }

Methods

impl<'h, T: IntoHeapAllocation<'h>> GcRef<'h, T>
[src]

Pin an object, returning a new GcRef that will unpin it when dropped. Unsafe because if p is not a pointer to a live allocation of type T::In --- and a complete allocation, not a sub-object of one --- then later unsafe code will explode.

Trait Implementations

impl<'h, T: IntoHeapAllocation<'h>> Drop for GcRef<'h, T>
[src]

A method called when the value goes out of scope. Read more

impl<'h, T: IntoHeapAllocation<'h>> Clone for GcRef<'h, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'h, T: IntoHeapAllocation<'h>> Debug for GcRef<'h, T>
[src]

Formats the value using the given formatter.

impl<'h, T: IntoHeapAllocation<'h>> PartialEq for GcRef<'h, T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'h, T: IntoHeapAllocation<'h>> Eq for GcRef<'h, T>
[src]