Enum evaltrees::ast::Type[][src]

pub enum Type {
    Bool,
    Forall(Box<Type>),
    Func(Box<Type>, Box<Type>),
    Int,
    List(Box<Type>),
    Var(usize),
}

A (fully formed) type.

Variants

The boolean type.

Universal quantification over a variable.

De Brujin indices are used here, so no explicit names are needed.

A function type.

The unsigned integer type.

A list type.

A type variable.

Methods

impl Type
[src]

Returns the "number of arguments" the type takes.

Trait Implementations

impl Display for Type
[src]

Formats the value using the given formatter. Read more

impl Clone for Type
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Type
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Type
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Type

impl Sync for Type