pub enum Expr {
Number(f64),
Text(String),
Bool(bool),
Error(ErrorKind),
Empty,
Ref(RefExpr),
Name {
name: String,
sheet: Option<String>,
},
Call(String, Vec<Expr>),
Neg(Box<Expr>),
Pos(Box<Expr>),
Percent(Box<Expr>),
Binary(BinOp, Box<Expr>, Box<Expr>),
}Expand description
A parsed formula.
Variants§
Number(f64)
Text(String)
Bool(bool)
Error(ErrorKind)
Empty
An argument left out, IF(A1,,B1).
Ref(RefExpr)
Name
A defined name, with the sheet that scopes it when one is written.
Call(String, Vec<Expr>)
A function call, the name in upper case.
Neg(Box<Expr>)
Pos(Box<Expr>)
Percent(Box<Expr>)
Binary(BinOp, Box<Expr>, Box<Expr>)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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