pub struct Expr {
pub data: ExprKind,
pub range: Range,
}
Expand description
Describes a single expression inside Kind2.
Fields§
§data: ExprKind
§range: Range
Implementations§
Source§impl Expr
impl Expr
pub fn var(name: Ident) -> Box<Expr>
pub fn cons(name: QualifiedIdent, args: Spine, range: Range) -> Box<Expr>
pub fn all( param: Ident, typ: Box<Expr>, body: Box<Expr>, erased: bool, range: Range, ) -> Box<Expr>
pub fn lambda( param: Ident, typ: Option<Box<Expr>>, body: Box<Expr>, erased: bool, range: Range, ) -> Box<Expr>
pub fn typ(range: Range) -> Box<Expr>
pub fn app(fun: Box<Expr>, args: Vec<AppBinding>, range: Range) -> Box<Expr>
pub fn hole(range: Range) -> Box<Expr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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