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>, usize), }
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>, usize)
Methods
impl Variable
[src]
Trait Implementations
impl Clone for Variable
[src]
fn clone(&self) -> Variable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Variable
[src]
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.