pub enum Expression {
Show 13 variants
Assignment {
left: String,
right: Box<Expression>,
},
Reassignment {
left: String,
right: Box<Expression>,
},
Float {
value: f64,
kg: f64,
m: f64,
s: f64,
a: f64,
k: f64,
mol: f64,
},
Identifier(String),
Symbolic(String),
FullSymbolic(String),
BinOp {
left: Box<Expression>,
oper: BinaryOperation,
right: Box<Expression>,
},
FnCall {
name: String,
arguments: Vec<Expression>,
},
Subsubheader(String),
Subheader(String),
Header(String),
Paragraph(String),
Null,
}Expand description
Enumerates the expression available to the Carlo parser.
Variants§
Assignment
Assignment
Reassignment
Reassignment
Float
64-bit dimensioned floating-point
Identifier(String)
Identifier
Symbolic(String)
Symbolic identifier
FullSymbolic(String)
Full-resolution symbolic identifier
BinOp
Binary operation
FnCall
Function call
Subsubheader(String)
Subsubheader
Subheader(String)
Subheader
Header(String)
Header
Paragraph(String)
Paragraph
Null
Null
Implementations§
Source§impl Expression
impl Expression
Trait Implementations§
Source§impl Clone for Expression
impl Clone for Expression
Source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
Returns a duplicate 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 Expression
impl Debug for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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