pub enum VaultExpression {
DefineVariable {
name: String,
},
TakeVariable {
name: String,
},
CloneVariable {
name: String,
},
VariableRef {
name: String,
},
VariableRefMut {
name: String,
},
Literal(VaultLiteral),
CallFunction {
module_name: Option<String>,
name: String,
arguments: Vec<VaultExpression>,
},
CallMethod {
module_name: Option<String>,
type_name: String,
name: String,
arguments: Vec<VaultExpression>,
},
If {
condition: Box<VaultExpression>,
success: Vec<VaultStatement>,
failure: Option<Vec<VaultStatement>>,
},
}
Variants§
DefineVariable
TakeVariable
CloneVariable
VariableRef
VariableRefMut
Literal(VaultLiteral)
CallFunction
CallMethod
If
Fields
§
condition: Box<VaultExpression>
§
success: Vec<VaultStatement>
§
failure: Option<Vec<VaultStatement>>
Implementations§
source§impl VaultExpression
impl VaultExpression
pub fn compile( &self, result: &mut Vec<ScriptOperation<'_, VaultScriptExpression>>, registers: &mut Vec<String> )
Trait Implementations§
source§impl Clone for VaultExpression
impl Clone for VaultExpression
source§fn clone(&self) -> VaultExpression
fn clone(&self) -> VaultExpression
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 VaultExpression
impl Debug for VaultExpression
source§impl<'de> Deserialize<'de> for VaultExpression
impl<'de> Deserialize<'de> for VaultExpression
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 VaultExpression
impl RefUnwindSafe for VaultExpression
impl Send for VaultExpression
impl Sync for VaultExpression
impl Unpin for VaultExpression
impl UnwindSafe for VaultExpression
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