Enum pomelo_hir::hir::DecKind
source · pub enum DecKind {
Missing,
Seq {
decs: Box<[Idx<Dec>]>,
},
Val {
tyvarseq: Box<[TyVar]>,
bindings: Box<[ValBind]>,
},
Ty {
bindings: Box<[TypBind]>,
},
Datatype {
databinds: Box<[DataBind]>,
},
Replication {
lhs: TyCon,
rhs: (LongTyCon, DefLoc),
},
Abstype {
databinds: Box<[DataBind]>,
dec: Idx<Dec>,
},
Exception {
exbind: ExBind,
},
Local {
inner: Idx<Dec>,
outer: Idx<Dec>,
},
Open {
longstrids: Box<[LongStrId]>,
},
Fixity {
fixity: Fixity,
vids: Box<[(VId, DefLoc)]>,
},
}
Expand description
Kinds of HIR declarations.
These correspond to the basic forms in Chapter 2 of the Definition, after desugaring the derived forms from Appendix A.