Enum gluon_vm::internal::Value
[−]
[src]
pub enum Value { Byte(u8), Int(VmInt), Float(f64), String(GcStr), Tag(VmTag), Data(GcPtr<DataStruct>), Array(GcPtr<ValueArray>), Function(GcPtr<ExternFunction>), Closure(GcPtr<ClosureData>), PartialApplication(GcPtr<PartialApplicationData>), Userdata(GcPtr<Box<Userdata>>), Thread(GcPtr<Thread>), }
Variants
Byte(u8)
Int(VmInt)
Float(f64)
String(GcStr)
Tag(VmTag)
Data(GcPtr<DataStruct>)
Array(GcPtr<ValueArray>)
Function(GcPtr<ExternFunction>)
Closure(GcPtr<ClosureData>)
PartialApplication(GcPtr<PartialApplicationData>)
Userdata(GcPtr<Box<Userdata>>)
Thread(GcPtr<Thread>)
Methods
impl Value
[src]
fn generation(self) -> Generation
[src]
Trait Implementations
impl<'vm> Getable<'vm> for Value
[src]
fn from_value(_vm: &'vm Thread, value: Variants) -> Option<Self>
[src]
unsafe fn from_value_unsafe(vm: &'vm Thread, value: Variants) -> Option<Self>
[src]
unsafe version of from_value which allows references to the internal of GcPtr's to be extracted if value
is rooted Read more
impl Copy for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
[src]
This method tests for !=
.