[][src]Enum yolk::ast::YololExpr

pub enum YololExpr {
    Prefix {
        op: PrefixOp,
        expr: Box<YololExpr>,
    },
    Infix {
        lhs: Box<YololExpr>,
        op: InfixOp,
        rhs: Box<YololExpr>,
    },
    Ident(String),
    Literal(YololNumber),
}

Represents a Yolol expression.

Variants

Prefix

Fields of Prefix

op: PrefixOpexpr: Box<YololExpr>
Infix

Fields of Infix

lhs: Box<YololExpr>op: InfixOprhs: Box<YololExpr>
Ident(String)Literal(YololNumber)

Trait Implementations

impl Clone for YololExpr[src]

impl PartialEq<YololExpr> for YololExpr[src]

impl Display for YololExpr[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats a Yolol expression as a string.

impl Debug for YololExpr[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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