Enum dyon::Variable [] [src]

pub enum Variable {
    Ref(usize),
    Return,
    Bool(boolOption<Box<Vec<Variable>>>),
    F64(f64Option<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)ReturnBool(boolOption<Box<Vec<Variable>>>)F64(f64Option<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]

fn f64(val: f64) -> Variable

fn bool(val: bool) -> Variable

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]

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

Formats the value using the given formatter.

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.

impl PartialEq for Variable
[src]

fn eq(&self, other: &Variable) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.