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
Bool
The boolean type.
Forall(Box<Type>)
Universal quantification over a variable.
De Brujin indices are used here, so no explicit names are needed.
Func(Box<Type>, Box<Type>)
A function type.
Int
The unsigned integer type.
List(Box<Type>)
A list type.
Var(usize)
A type variable.
Methods
impl Type
[src]
impl Type
Trait Implementations
impl Display for Type
[src]
impl Display for Type
fn fmt(&self, fmt: &mut Formatter) -> FmtResult
[src]
fn fmt(&self, fmt: &mut Formatter) -> FmtResult
Formats the value using the given formatter. Read more
impl Clone for Type
[src]
impl Clone for Type
fn clone(&self) -> Type
[src]
fn clone(&self) -> Type
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Type
[src]
impl Debug for Type
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Type
[src]
impl PartialEq for Type