pub enum Term {
Whnf(Val),
Redex(GI, Ident, Vec<Elim>),
}
Expand description
Type for terms.
Variants§
Implementations§
Source§impl Term
Constructors and traversal functions.
impl Term
Constructors and traversal functions.
pub fn is_type(&self) -> bool
pub fn is_universe(&self) -> bool
pub fn cons(name: ConHead, params: Vec<Self>) -> Self
pub fn data(info: ValData) -> Self
pub fn meta(index: MI, params: Vec<Elim>) -> Self
pub fn reflexivity() -> Self
pub fn universe(level: Level) -> Self
pub fn identity(ty: Self, a: Self, b: Self) -> Self
pub fn fresh_axiom() -> Self
pub(crate) fn postulate(uid: UID) -> Self
pub fn def(gi: GI, ident: Ident, elims: Vec<Elim>) -> Self
pub fn simple_def(gi: GI, ident: Ident) -> Self
pub fn pi_from_tele(tele: Tele, ret: Self) -> Self
pub fn pi(licit: Plicit, name: UID, param_type: Term, body: Closure) -> Self
pub fn pi2(param: Bind<Box<Term>>, body: Closure) -> Self
Trait Implementations§
Source§impl HasMeta for Term
impl HasMeta for Term
Source§fn inline_meta(self, tcs: TCS) -> TCMS<Self>
fn inline_meta(self, tcs: TCS) -> TCMS<Self>
Inline solved metas inside
self
.impl Eq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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