Enum psi_lang::Expr[][src]

pub enum Expr {
    Integer(i64),
    Float(f64),
    StringFmt(Identifiers),
    StringRaw(String),
    Identifier(Identifier),
    Boolean(bool),
    Inclusive(Box<Expr>, Box<Expr>),
    Exclusive(Box<Expr>, Box<Expr>),
    Array(Identifiers),
    Table(Table),
    Not(Box<Expr>),
    BinOp(Box<Expr>, OpBox<Expr>),
    FnCall(Box<Expr>, Identifiers),
    VarIndex(Box<Expr>, VecDeque<Expr>),
    Impossible,
}

Variants

Integer(i64)
Float(f64)
StringFmt(Identifiers)
StringRaw(String)
Identifier(Identifier)
Boolean(bool)
Inclusive(Box<Expr>, Box<Expr>)
Exclusive(Box<Expr>, Box<Expr>)
Table(Table)
Not(Box<Expr>)
BinOp(Box<Expr>, OpBox<Expr>)
FnCall(Box<Expr>, Identifiers)
VarIndex(Box<Expr>, VecDeque<Expr>)
Impossible

Implementations

impl Expr[src]

pub fn pow(self, by: Expr) -> Expr[src]

pub fn as_bool(&self) -> Result<bool, Error>[src]

Trait Implementations

impl Add<Expr> for Expr[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Expr[src]

impl Debug for Expr[src]

impl Display for Expr[src]

impl Div<Expr> for Expr[src]

type Output = Self

The resulting type after applying the / operator.

impl Mul<Expr> for Expr[src]

type Output = Self

The resulting type after applying the * operator.

impl PartialEq<Expr> for Expr[src]

impl PartialOrd<Expr> for Expr[src]

impl Rem<Expr> for Expr[src]

type Output = Self

The resulting type after applying the % operator.

impl StructuralPartialEq for Expr[src]

impl Sub<Expr> for Expr[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

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> 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.