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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

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

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

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. 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, Seed> SerializeState<Seed> for GcPtr<T> where
    T: SerializeState<Seed>,
    Seed: AsRef<NodeToId>, 
[src]

Placeholder

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

Deserializes Self using seed and the deserializer

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

Blanket Implementations

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

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

Converts the given value to a String. Read more

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

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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.

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

Performs the conversion.

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<Choices> CoproductSubsetter for Choices
[src]

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more

impl<Source> Sculptor for Source
[src]

Consumes the current HList and returns an HList with the requested shape. Read more

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

Performs the indexed conversion.

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]