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

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> Traverseable for GcPtr<T> where
    T: Traverseable
[src]

When traversing a GcPtr we need to mark it

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

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

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 + Ord> Ord for GcPtr<T>
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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

This method tests for !=.

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

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

Performs copy-assignment from source. Read more

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

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

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

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

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

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

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

The resulting type after dereferencing.

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

impl<T, Seed> SerializeState<Seed> for GcPtr<T> where
    T: SerializeState<Seed>,
    Seed: AsRef<NodeToId>, 
[src]

impl<'de, T> DeserializeState<'de, DeSeed> for GcPtr<T> where
    T: Traverseable + 'static,
    T: DeserializeState<'de, DeSeed>, 
[src]

impl<T> Shared for GcPtr<T>
[src]

Blanket Implementations

impl<D, T> FromPtr for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<Choices> CoproductSubsetter for Choices
[src]

impl<Source> Sculptor for Source
[src]

impl<T, U, I> LiftInto for T where
    U: LiftFrom<T, I>, 
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]