Struct cell_gc::GCLeaf [] [src]

pub struct GCLeaf<T: Clone + 'static> { /* fields omitted */ }

GCLeaf can be used to embed just about anything in a GC heap type.

Methods

impl<T: Clone + 'static> GCLeaf<T>
[src]

Create a new GCLeaf wrapping a given value.

Trait Implementations

impl<'h, T: Clone + 'static> IntoHeap<'h> for GCLeaf<T>
[src]

The type of the value when it is physically stored in the heap.

Convert the value to the form it should have in the heap. This is for macro-generated code to call. Read more

Extract the value from the heap. This turns any raw pointers in the in-heap value into safe references, so while it's an unsafe function, the result of a correct call can be safely handed out to user code. Read more

Safety Read more

impl<T: Copy + Clone + 'static> Copy for GCLeaf<T>
[src]

impl<T: Clone + Clone + 'static> Clone for GCLeaf<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + Clone + 'static> Debug for GCLeaf<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq + Clone + 'static> PartialEq for GCLeaf<T>
[src]

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

This method tests for !=.

impl<T: Clone + 'static> Deref for GCLeaf<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T: Clone + 'static> DerefMut for GCLeaf<T>
[src]

The method called to mutably dereference a value