[−][src]Enum dyon::Variable
Dyon variable.
Variants
Ref(usize)
Reference.
Return handle.
Boolean.
F64.
4D vector.
4D matrix.
Text.
Array(Array)
Array.
Object(Object)
Object.
Link.
UnsafeRef(UnsafeRef)
Unsafe reference.
RustObject(RustObject)
Rust object.
Option.
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-type.
Implementations
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 Clone for Variable
[src]
impl Debug for Variable
[src]
impl PartialEq<Variable> for Variable
[src]
impl PopVariable for Variable
[src]
impl PushVariable 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.
Auto Trait Implementations
impl !RefUnwindSafe for Variable
impl !Sync for Variable
impl Unpin for Variable
impl !UnwindSafe for Variable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, U> TryFrom<U> 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<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,