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
Lambda
Fields of Lambda
v: String | |
body: Box<Syntax> |
Identifier
Fields of Identifier
name: String |
Apply
Fields of Apply
func: Box<Syntax> | |
arg: Box<Syntax> |
Let
Fields of Let
v: String | |
defn: Box<Syntax> | |
body: Box<Syntax> |
Letrec
Fields of Letrec
v: String | |
defn: Box<Syntax> | |
body: Box<Syntax> |
Trait Implementations
impl Debug for Syntax
[src]
impl PartialEq for Syntax
[src]
fn eq(&self, __arg_0: &Syntax) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Syntax) -> bool
This method tests for !=
.
impl Eq for Syntax
[src]
impl Clone for Syntax
[src]
fn clone(&self) -> Syntax
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more