pub enum Term {
Literal(Literal),
Call(String, Vec<Expression>),
Variable(String),
Index(String, Expression),
UnaryOp(UnaryOperator, Box<Term>),
}
Variants
Literal(Literal)
Call(String, Vec<Expression>)
Call a function with a list of arguments
Variable(String)
Index(String, Expression)
Call the index operator on a variable, where index is the result of an expression.
UnaryOp(UnaryOperator, Box<Term>)
Apply an unary operator to the term to its right
Trait Implementations
impl Eq for Term
impl StructuralEq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more