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]
Trait Implementations
impl PopVariable for Variable
[src]
fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>
[src]
Converts variable to self. The variable should be resolved before call. Read more
impl PushVariable for Variable
[src]
impl Debug for Variable
[src]
impl Clone for Variable
[src]
fn clone(&self) -> Variable
[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 Send for Variable
[src]
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.