Enum lambda_calculus::term::Notation [] [src]

pub enum Notation {
    Classic,
    DeBruijn,
}

The notation used for parsing and displaying purposes.

Examples

use lambda_calculus::combinators::S;

assert_eq!(&format!(  "{}", S()), "λa.λb.λc.a c (b c)"); // Classic notation
assert_eq!(&format!("{:?}", S()), "λλλ31(21)");          // DeBruijn index notation

Variants

classic lambda calculus notation; used by fmt::Display

De Bruijn indices; used by fmt::Debug

Trait Implementations

impl Debug for Notation
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Notation
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Clone for Notation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Notation
[src]