Enum calc::ast::Expr[][src]

pub enum Expr<'input> {
    Term(Term<'input>),
    Prefix(PrefixOperatorBox<Expr<'input>>),
    Infix(Box<Expr<'input>>, InfixOperatorBox<Expr<'input>>),
    Func(FunctionBox<Expr<'input>>),
    Group(Box<Expr<'input>>),
}

An expression or subexpression

Variants

Term(Term<'input>)
Prefix(PrefixOperatorBox<Expr<'input>>)
Infix(Box<Expr<'input>>, InfixOperatorBox<Expr<'input>>)
Func(FunctionBox<Expr<'input>>)
Group(Box<Expr<'input>>)

Trait Implementations

impl<'input> Clone for Expr<'input>[src]

impl<'input> Debug for Expr<'input>[src]

impl<'input> Eq for Expr<'input>[src]

impl<'input> PartialEq<Expr<'input>> for Expr<'input>[src]

impl<'input> StructuralEq for Expr<'input>[src]

impl<'input> StructuralPartialEq for Expr<'input>[src]

Auto Trait Implementations

impl<'input> RefUnwindSafe for Expr<'input>

impl<'input> Send for Expr<'input>

impl<'input> Sync for Expr<'input>

impl<'input> Unpin for Expr<'input>

impl<'input> UnwindSafe for Expr<'input>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.