pub enum SimpletonLiteral {
Null,
Boolean(Boolean),
Integer(Integer),
Real(Real),
Text(Text),
Array {
items: Vec<SimpletonExpressionStart>,
},
Map {
items: Vec<(String, SimpletonExpressionStart)>,
},
Object {
name: String,
module_name: String,
fields: Vec<(String, SimpletonExpressionStart)>,
},
}
Variants§
Null
Boolean(Boolean)
Integer(Integer)
Real(Real)
Text(Text)
Array
Fields
§
items: Vec<SimpletonExpressionStart>
Map
Fields
§
items: Vec<(String, SimpletonExpressionStart)>
Object
Implementations§
Source§impl SimpletonLiteral
impl SimpletonLiteral
pub fn compile( &self, result: &mut Vec<ScriptOperation<'_, SimpletonScriptExpression>>, registers: &mut Vec<String>, closures: &mut Vec<SimpletonFunction>, closures_index: &mut usize, ) -> SimpletonScriptLiteral
Trait Implementations§
Source§impl Clone for SimpletonLiteral
impl Clone for SimpletonLiteral
Source§fn clone(&self) -> SimpletonLiteral
fn clone(&self) -> SimpletonLiteral
Returns a copy 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 SimpletonLiteral
impl Debug for SimpletonLiteral
Source§impl<'de> Deserialize<'de> for SimpletonLiteral
impl<'de> Deserialize<'de> for SimpletonLiteral
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SimpletonLiteral
impl RefUnwindSafe for SimpletonLiteral
impl Send for SimpletonLiteral
impl Sync for SimpletonLiteral
impl Unpin for SimpletonLiteral
impl UnwindSafe for SimpletonLiteral
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