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

pub enum Notation {
    Classic,
    DeBruijn,
}

The notation used for parsing and displaying purposes.

Example

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; the default fmt::Display mode

De Bruijn indices; the fmt::Debug display mode

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]