pub enum Value {
Int(i64),
Float(f64),
Bool(bool),
Char(char),
String(String),
Vec(Vec<Value>),
Struct(StoredStruct, HashMap<String, Value>),
Object(IndexMap<String, Value>),
Null,
Void,
}Variants§
Int(i64)
Float(f64)
Bool(bool)
Char(char)
String(String)
Vec(Vec<Value>)
Struct(StoredStruct, HashMap<String, Value>)
Object(IndexMap<String, Value>)
Null
Void
Implementations§
Source§impl Value
impl Value
pub fn builtin_methods(&self) -> HashMap<String, NativeFunction>
Source§impl Value
impl Value
pub fn access_index(&self, index: Self) -> Self
Trait Implementations§
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl Eq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.