pub enum TermNode {
Var(usize),
App {
callee: String,
args: Vec<TermNode>,
},
}Expand description
A node in a typed term tree. App.callee is a cone pure-fn name or a
builtin (List.concat); rendering is uniform callee(arg, …).
Variants§
Var(usize)
A bound variable, by index into the shared binders.
App
Application of a cone fn or builtin op to typed args.
Trait Implementations§
impl StructuralPartialEq for TermNode
Auto Trait Implementations§
impl Freeze for TermNode
impl RefUnwindSafe for TermNode
impl Send for TermNode
impl Sync for TermNode
impl Unpin for TermNode
impl UnsafeUnpin for TermNode
impl UnwindSafe for TermNode
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