pub enum SimpletonExpressionStart {
FindStruct {
name: String,
module_name: String,
next: Option<SimpletonExpressionNext>,
},
FindFunction {
name: String,
module_name: String,
next: Option<SimpletonExpressionNext>,
},
Closure {
captures: Vec<String>,
arguments: Vec<String>,
statements: Vec<SimpletonStatement>,
next: Option<SimpletonExpressionNext>,
},
Literal {
literal: SimpletonLiteral,
next: Option<SimpletonExpressionNext>,
},
GetVariable {
name: String,
next: Option<SimpletonExpressionNext>,
},
CallFunction {
name: String,
module_name: String,
arguments: Vec<SimpletonExpressionStart>,
next: Option<SimpletonExpressionNext>,
},
}
Variants§
FindStruct
FindFunction
Closure
Literal
GetVariable
CallFunction
Implementations§
Source§impl SimpletonExpressionStart
impl SimpletonExpressionStart
pub fn compile( &self, result: &mut Vec<ScriptOperation<'_, SimpletonScriptExpression>>, registers: &mut Vec<String>, closures: &mut Vec<SimpletonFunction>, closures_index: &mut usize, )
pub fn compile_assign( &self, result: &mut Vec<ScriptOperation<'_, SimpletonScriptExpression>>, registers: &mut Vec<String>, closures: &mut Vec<SimpletonFunction>, closures_index: &mut usize, )
Trait Implementations§
Source§impl Clone for SimpletonExpressionStart
impl Clone for SimpletonExpressionStart
Source§fn clone(&self) -> SimpletonExpressionStart
fn clone(&self) -> SimpletonExpressionStart
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 SimpletonExpressionStart
impl Debug for SimpletonExpressionStart
Source§impl<'de> Deserialize<'de> for SimpletonExpressionStart
impl<'de> Deserialize<'de> for SimpletonExpressionStart
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 SimpletonExpressionStart
impl RefUnwindSafe for SimpletonExpressionStart
impl Send for SimpletonExpressionStart
impl Sync for SimpletonExpressionStart
impl Unpin for SimpletonExpressionStart
impl UnwindSafe for SimpletonExpressionStart
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