pub enum PCFValue {
Num(u64),
Bool(bool),
Bottom,
Closure(Box<PCFTerm>, usize),
}Expand description
The result of evaluating a PCF term: either a value or divergence (⊥).
Variants§
Num(u64)
A natural number value.
Bool(bool)
A Boolean value.
Bottom
Divergence (bottom element ⊥).
Closure(Box<PCFTerm>, usize)
A closure (lambda body + captured environment depth).
Implementations§
Trait Implementations§
impl Eq for PCFValue
impl StructuralPartialEq for PCFValue
Auto Trait Implementations§
impl Freeze for PCFValue
impl RefUnwindSafe for PCFValue
impl Send for PCFValue
impl Sync for PCFValue
impl Unpin for PCFValue
impl UnsafeUnpin for PCFValue
impl UnwindSafe for PCFValue
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