Enum dyon::Variable [−][src]
pub enum Variable { Ref(usize), Return, Bool(bool, Option<Box<Vec<Variable>>>), F64(f64, Option<Box<Vec<Variable>>>), Vec4([f32; 4]), Text(Arc<String>), Array(Array), Object(Object), Link(Box<Link>), UnsafeRef(UnsafeRef), RustObject(RustObject), Option(Option<Box<Variable>>), Result(Result<Box<Variable>, Box<Error>>), Thread(Thread), Closure(Arc<Closure>, Box<ClosureEnvironment>), In(Arc<Mutex<Receiver<Variable>>>), }
Variants
Ref(usize)
Return
Bool(bool, Option<Box<Vec<Variable>>>)
F64(f64, Option<Box<Vec<Variable>>>)
Vec4([f32; 4])
Text(Arc<String>)
Array(Array)
Object(Object)
Link(Box<Link>)
UnsafeRef(UnsafeRef)
RustObject(RustObject)
Option(Option<Box<Variable>>)
Result(Result<Box<Variable>, Box<Error>>)
Thread(Thread)
Closure(Arc<Closure>, Box<ClosureEnvironment>)
In(Arc<Mutex<Receiver<Variable>>>)
Methods
impl Variable
[src]
impl Variable
Trait Implementations
impl PopVariable for Variable
[src]
impl PopVariable for Variable
fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>
[src]
fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>
Converts variable to self. The variable should be resolved before call. Read more
impl PushVariable for Variable
[src]
impl PushVariable for Variable
impl Debug for Variable
[src]
impl Debug for Variable
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Variable
[src]
impl Clone for Variable
fn clone(&self) -> Variable
[src]
fn clone(&self) -> Variable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Send for Variable
[src]
impl Send for Variable
This is requires because UnsafeRef(*mut Variable)
can not be sent across threads.
The lack of UnsafeRef
variant when sending across threads is guaranteed at language level.
The interior of UnsafeRef
can not be accessed outside this library.
impl PartialEq for Variable
[src]
impl PartialEq for Variable