pub enum StackType {
Empty,
Cons {
rest: Box<StackType>,
top: Type,
},
RowVar(String),
}Expand description
Stack types with row polymorphism
Variants§
Empty
Empty stack
Cons
Stack with a value on top of rest Example: Int on top of ..a
Fields
RowVar(String)
Row variable representing “rest of stack” Example: ..a in ( ..a Int – ..a Bool )
Implementations§
Trait Implementations§
impl Eq for StackType
impl StructuralPartialEq for StackType
Auto Trait Implementations§
impl Freeze for StackType
impl RefUnwindSafe for StackType
impl Send for StackType
impl Sync for StackType
impl Unpin for StackType
impl UnwindSafe for StackType
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