pub enum TypedExprKind {
Show 20 variants
Bool(bool),
Uint(u64),
Int(i64),
Float(f64),
String(String),
Uuid(Uuid),
DateTime(DateTime<Utc>),
Hole,
Tuple(Vec<TypedExpr>),
List(Vec<TypedExpr>),
Dict(BTreeMap<Symbol, TypedExpr>),
RecordUpdate {
base: Box<TypedExpr>,
updates: BTreeMap<Symbol, TypedExpr>,
},
Var {
name: Symbol,
overloads: Vec<Type>,
},
App(Box<TypedExpr>, Box<TypedExpr>),
Project {
expr: Box<TypedExpr>,
field: Symbol,
},
Lam {
param: Symbol,
body: Box<TypedExpr>,
},
Let {
name: Symbol,
def: Box<TypedExpr>,
body: Box<TypedExpr>,
},
LetRec {
bindings: Vec<(Symbol, TypedExpr)>,
body: Box<TypedExpr>,
},
Ite {
cond: Box<TypedExpr>,
then_expr: Box<TypedExpr>,
else_expr: Box<TypedExpr>,
},
Match {
scrutinee: Box<TypedExpr>,
arms: Vec<(Pattern, TypedExpr)>,
},
}Variants§
Bool(bool)
Uint(u64)
Int(i64)
Float(f64)
String(String)
Uuid(Uuid)
DateTime(DateTime<Utc>)
Hole
Tuple(Vec<TypedExpr>)
List(Vec<TypedExpr>)
Dict(BTreeMap<Symbol, TypedExpr>)
RecordUpdate
Var
App(Box<TypedExpr>, Box<TypedExpr>)
Project
Lam
Let
LetRec
Ite
Match
Trait Implementations§
Source§impl Clone for TypedExprKind
impl Clone for TypedExprKind
Source§fn clone(&self) -> TypedExprKind
fn clone(&self) -> TypedExprKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedExprKind
impl Debug for TypedExprKind
Source§impl PartialEq for TypedExprKind
impl PartialEq for TypedExprKind
impl StructuralPartialEq for TypedExprKind
Auto Trait Implementations§
impl Freeze for TypedExprKind
impl RefUnwindSafe for TypedExprKind
impl Send for TypedExprKind
impl Sync for TypedExprKind
impl Unpin for TypedExprKind
impl UnsafeUnpin for TypedExprKind
impl UnwindSafe for TypedExprKind
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