[][src]Enum foliage::Term

pub enum Term {
    BinaryOperation(BinaryOperation),
    Boolean(bool),
    Function(Function),
    Integer(i32),
    SpecialInteger(SpecialInteger),
    String(String),
    UnaryOperation(UnaryOperation),
    Variable(Variable),
}

Variants

BinaryOperation(BinaryOperation)
Boolean(bool)
Function(Function)
Integer(i32)
SpecialInteger(SpecialInteger)
String(String)
UnaryOperation(UnaryOperation)
Variable(Variable)

Methods

impl Term[src]

pub fn absolute_value(argument: Box<Term>) -> Self[src]

pub fn add(left: Box<Term>, right: Box<Term>) -> Self[src]

pub fn binary_operation(
    operator: BinaryOperator,
    left: Box<Term>,
    right: Box<Term>
) -> Self
[src]

pub fn boolean(value: bool) -> Self[src]

pub fn divide(left: Box<Term>, right: Box<Term>) -> Self[src]

pub fn exponentiate(left: Box<Term>, right: Box<Term>) -> Self[src]

pub fn false_() -> Self[src]

pub fn function(
    declaration: &Rc<FunctionDeclaration>,
    arguments: Vec<Box<Term>>
) -> Self
[src]

pub fn infimum() -> Self[src]

pub fn integer(value: i32) -> Self[src]

pub fn modulo(left: Box<Term>, right: Box<Term>) -> Self[src]

pub fn multiply(left: Box<Term>, right: Box<Term>) -> Self[src]

pub fn negative(argument: Box<Term>) -> Self[src]

pub fn special_integer(value: SpecialInteger) -> Self[src]

pub fn string(value: String) -> Self[src]

pub fn subtract(left: Box<Term>, right: Box<Term>) -> Self[src]

pub fn supremum() -> Self[src]

pub fn true_() -> Self[src]

pub fn unary_operation(operator: UnaryOperator, argument: Box<Term>) -> Self[src]

pub fn variable(declaration: &Rc<VariableDeclaration>) -> Self[src]

Trait Implementations

impl Debug for Term[src]

impl Display for Term[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.