pub enum RExpression {
Show 14 variants
Number(f64),
Boolean(bool),
Void,
None,
String(String),
Identifier(String),
Call(usize, Vec<RExpression>),
Construction {
assignments: Vec<(String, RExpression)>,
is_heap_allocated: bool,
},
IfStatement {
first: Box<RConditionBody>,
conds: Vec<RConditionBody>,
last: Option<Box<RInterpretedBody>>,
},
UnaryOperation {
op: UnaryOperator,
exp: Box<RExpression>,
},
ListLiteral(Vec<RExpression>),
Bang(Box<RExpression>),
MemberAccess(Box<RExpression>, String),
BinaryOperation {
left: Box<RExpression>,
op: BinaryOperator,
right: Box<RExpression>,
},
}
Variants§
Number(f64)
Boolean(bool)
Void
None
String(String)
Identifier(String)
Call(usize, Vec<RExpression>)
Construction
IfStatement
UnaryOperation
ListLiteral(Vec<RExpression>)
Bang(Box<RExpression>)
MemberAccess(Box<RExpression>, String)
BinaryOperation
Auto Trait Implementations§
impl Freeze for RExpression
impl RefUnwindSafe for RExpression
impl Send for RExpression
impl Sync for RExpression
impl Unpin for RExpression
impl UnwindSafe for RExpression
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