Enum oxischeme::heap::GcThing [-]  [+] [src]

pub enum GcThing {
    Cons(ConsPtr),
    String(StringPtr),
    Activation(ActivationPtr),
    Procedure(ProcedurePtr),
}

The union of the various types that are GC things.

Variants

Cons
String
Activation
Procedure

Methods

impl GcThing

GcThing Constructors

fn from_string_ptr(str: StringPtr) -> GcThing

Create a GcThing from a StringPtr.

fn from_cons_ptr(cons: ConsPtr) -> GcThing

Create a GcThing from a ConsPtr.

fn from_procedure_ptr(procedure: ProcedurePtr) -> GcThing

Create a GcThing from a ProcedurePtr.

fn from_activation_ptr(act: ActivationPtr) -> GcThing

Create a GcThing from an ActivationPtr.

Trait Implementations

impl Trace for GcThing

fn trace(&self) -> IterGcThing

Derived Implementations

impl Debug for GcThing

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for GcThing

fn eq(&self, __arg_0: &GcThing) -> bool

fn ne(&self, __arg_0: &GcThing) -> bool

impl<__S: Writer + Hasher> Hash<__S> for GcThing

fn hash(&self, __arg_0: &mut __S)

impl Eq for GcThing

fn assert_receiver_is_total_eq(&self)

impl Copy for GcThing