Enum oters_lang::export::Value
source · pub enum Value {
Bool(bool),
Int(i64),
Float(f64),
String(String),
Unit,
List(Vec<Box<Value>>),
Tuple(Vec<Box<Value>>),
Struct(String, HashMap<String, Box<Value>>),
Variant(String, Option<Box<Value>>),
}
Variants§
Bool(bool)
Int(i64)
Float(f64)
String(String)
Unit
List(Vec<Box<Value>>)
Tuple(Vec<Box<Value>>)
Struct(String, HashMap<String, Box<Value>>)
Variant(String, Option<Box<Value>>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
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