Enum ayaka_script::Expr
source · pub enum Expr {
Ref(Ref),
Const(RawValue),
Unary(UnaryOp, Box<Expr>),
Binary(Box<Expr>, BinaryOp, Box<Expr>),
Call(String, String, Vec<Expr>),
}Expand description
An expression.
Two expressions should be splited with ;.
Variants§
Ref(Ref)
A reference to a variable.
Const(RawValue)
A const value.
Unary(UnaryOp, Box<Expr>)
A unary operation.
Binary(Box<Expr>, BinaryOp, Box<Expr>)
A binary operation.
Call(String, String, Vec<Expr>)
A call to a function.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
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