[−][src]Enum dyon::Variable
Dyon variable.
Variants
Ref(usize)
Reference.
Return
Return handle.
Bool(bool, Option<Box<Vec<Variable>>>)
Boolean.
F64(f64, Option<Box<Vec<Variable>>>)
F64.
Vec4([f32; 4])
Mat4(Box<[[f32; 4]; 4]>)
Text(Arc<String>)
Text.
Array(Array)
Array.
Object(Object)
Object.
Link(Box<Link>)
Link.
UnsafeRef(UnsafeRef)
Unsafe reference.
RustObject(RustObject)
Rust object.
Option(Option<Box<Variable>>)
Option.
Result(Result<Box<Variable>, Box<Error>>)
Result.
Thread(Thread)
Thread handle.
Closure(Arc<Closure>, Box<ClosureEnvironment>)
Stores closure together with a closure environment, which makes sure that the closure can be called correctly no matter where it goes.
In(Arc<Mutex<Receiver<Variable>>>)
In-type.
Methods
impl Variable
[src]
pub fn f64(val: f64) -> Variable
[src]
Creates a variable of type f64
.
pub fn bool(val: bool) -> Variable
[src]
Creates a variable of type bool
.
pub fn typeof_var(&self) -> Arc<String>
[src]
Returns type of variable.
Trait Implementations
impl PopVariable for Variable
[src]
impl PushVariable for Variable
[src]
impl PartialEq<Variable> for Variable
[src]
fn eq(&self, other: &Variable) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for Variable
[src]
fn clone(&self) -> Variable
[src]
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.
impl Debug for Variable
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,