Enum hindley_milner::Syntax [] [src]

pub enum Syntax {
    Lambda {
        v: String,
        body: Box<Syntax>,
    },
    Identifier {
        name: String,
    },
    Apply {
        func: Box<Syntax>,
        arg: Box<Syntax>,
    },
    Let {
        v: String,
        defn: Box<Syntax>,
        body: Box<Syntax>,
    },
    Letrec {
        v: String,
        defn: Box<Syntax>,
        body: Box<Syntax>,
    },
}

Variants

Fields of Lambda

Fields of Identifier

Fields of Apply

Fields of Let

Fields of Letrec

Trait Implementations

impl Debug for Syntax
[src]

Formats the value using the given formatter.

impl PartialEq for Syntax
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Syntax
[src]

impl Clone for Syntax
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Syntax
[src]

Formats the value using the given formatter. Read more