pub enum EtaStructure {
Atomic,
Lambda(usize),
App(usize),
EtaExpandable,
}Expand description
Describes the structure of an expression for eta-expansion purposes.
Variants§
Atomic
An expression that is not a lambda or application.
Lambda(usize)
A lambda abstraction with arity n.
App(usize)
An application spine with n arguments.
EtaExpandable
An expression suitable for eta-expansion.
Implementations§
Trait Implementations§
Source§impl Clone for EtaStructure
impl Clone for EtaStructure
Source§fn clone(&self) -> EtaStructure
fn clone(&self) -> EtaStructure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EtaStructure
impl Debug for EtaStructure
Source§impl PartialEq for EtaStructure
impl PartialEq for EtaStructure
impl Eq for EtaStructure
impl StructuralPartialEq for EtaStructure
Auto Trait Implementations§
impl Freeze for EtaStructure
impl RefUnwindSafe for EtaStructure
impl Send for EtaStructure
impl Sync for EtaStructure
impl Unpin for EtaStructure
impl UnsafeUnpin for EtaStructure
impl UnwindSafe for EtaStructure
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