pub enum ScriptValue {
String(String),
Bool(bool),
Int(i64),
Float(f64),
Rational(Rational),
}Expand description
Script value injected from CLI or embedding APIs.
Variants§
String(String)
String parameter.
Bool(bool)
Boolean parameter.
Int(i64)
Integer parameter.
Float(f64)
Floating-point parameter.
Rational(Rational)
Rational parameter.
Trait Implementations§
Source§impl Clone for ScriptValue
impl Clone for ScriptValue
Source§fn clone(&self) -> ScriptValue
fn clone(&self) -> ScriptValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScriptValue
impl Debug for ScriptValue
Source§impl PartialEq for ScriptValue
impl PartialEq for ScriptValue
Source§fn eq(&self, other: &ScriptValue) -> bool
fn eq(&self, other: &ScriptValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScriptValue
Auto Trait Implementations§
impl Freeze for ScriptValue
impl RefUnwindSafe for ScriptValue
impl Send for ScriptValue
impl Sync for ScriptValue
impl Unpin for ScriptValue
impl UnsafeUnpin for ScriptValue
impl UnwindSafe for ScriptValue
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