Enum calc::ast::Term[][src]

pub enum Term<'input> {
    Literal(&'input str),
    HexLiteral(&'input str),
    OctLiteral(&'input str),
    BinLiteral(&'input str),
    Constant(Constant),
    History(HistoryIndexKindusize),
}

A term in the expression.

Variants

Literal(&'input str)
HexLiteral(&'input str)
OctLiteral(&'input str)
BinLiteral(&'input str)
Constant(Constant)

Trait Implementations

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

impl<'input> Copy for Term<'input>[src]

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

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

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

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

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

Auto Trait Implementations

impl<'input> RefUnwindSafe for Term<'input>[src]

impl<'input> Send for Term<'input>[src]

impl<'input> Sync for Term<'input>[src]

impl<'input> Unpin for Term<'input>[src]

impl<'input> UnwindSafe for Term<'input>[src]

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.