pub enum Notation {
Classic,
DeBruijn,
}Expand description
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 notationVariants§
Classic
classic lambda calculus notation; used by fmt::Display
DeBruijn
De Bruijn indices; used by fmt::Debug
Trait Implementations§
impl Copy for Notation
impl Eq for Notation
impl StructuralPartialEq for Notation
Auto Trait Implementations§
impl Freeze for Notation
impl RefUnwindSafe for Notation
impl Send for Notation
impl Sync for Notation
impl Unpin for Notation
impl UnwindSafe for Notation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more