Struct gluon_vm::gc::GcPtr[][src]

pub struct GcPtr<T: ?Sized> { /* fields omitted */ }

A pointer to a garbage collected value.

It is only safe to access data through a GcPtr if the value is rooted (stored in a place where the garbage collector will find it during the mark phase).

Methods

impl<T: ?Sized> GcPtr<T>
[src]

Unsafe as it is up to the caller to ensure that this pointer is not referenced somewhere else

Unsafe as ptr must have been allocted by this garbage collector

impl<'a, T: Traverseable + Send + Sync + 'a> GcPtr<T>
[src]

Coerces self to a Traverseable trait object

impl GcPtr<str>
[src]

Coerces self to a Traverseable trait object

Trait Implementations

impl<T: ?Sized + Send + Sync> Send for GcPtr<T>
[src]

impl<T: ?Sized + Send + Sync> Sync for GcPtr<T>
[src]

impl<T: ?Sized> Copy for GcPtr<T>
[src]

impl<T: ?Sized> Clone for GcPtr<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: ?Sized> Deref for GcPtr<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T: ?Sized> Borrow<T> for GcPtr<T>
[src]

Immutably borrows from an owned value. Read more

impl<T: ?Sized + Eq> Eq for GcPtr<T>
[src]

impl<T: ?Sized + PartialEq> PartialEq for GcPtr<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: ?Sized + Ord> Ord for GcPtr<T>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: ?Sized + PartialOrd> PartialOrd for GcPtr<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: ?Sized + Hash> Hash for GcPtr<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: ?Sized + Debug> Debug for GcPtr<T>
[src]

Formats the value using the given formatter. Read more

impl<T: ?Sized + Display> Display for GcPtr<T>
[src]

Formats the value using the given formatter. Read more

impl<T: ?Sized> Traverseable for GcPtr<T> where
    T: Traverseable
[src]

When traversing a GcPtr we need to mark it