pub enum ScriptingValue {
Nil(),
Boolean(bool),
Float64(f64),
Int64(i64),
String(String),
}Expand description
Value type to allow storing different kinds of values
Variants§
Nil()
Nil signals the absence of a Value
Boolean(bool)
Boolean type
Float64(f64)
Float 64bit
Int64(i64)
Integer 64bit
String(String)
String type
Implementations§
Trait Implementations§
Source§impl Clone for ScriptingValue
impl Clone for ScriptingValue
Source§fn clone(&self) -> ScriptingValue
fn clone(&self) -> ScriptingValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptingValue
impl Debug for ScriptingValue
Source§impl Display for ScriptingValue
impl Display for ScriptingValue
Auto Trait Implementations§
impl Freeze for ScriptingValue
impl RefUnwindSafe for ScriptingValue
impl Send for ScriptingValue
impl Sync for ScriptingValue
impl Unpin for ScriptingValue
impl UnwindSafe for ScriptingValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more