Enum pomelo_hir::hir::PatKind
source · pub enum PatKind {
Missing,
Wildcard,
Scon(Scon),
VId {
op: bool,
longvid: (LongVId, Option<DefLoc>),
},
Record {
rows: Box<[PatRow]>,
},
Constructed {
op: bool,
longvid: (LongVId, DefLoc),
pat: Idx<Pat>,
},
Infix {
lhs: Idx<Pat>,
vid: (VId, DefLoc),
rhs: Idx<Pat>,
},
Typed {
pat: Idx<Pat>,
ty: Idx<Ty>,
},
Layered {
op: bool,
vid: VId,
ty: Option<Idx<Ty>>,
pat: Idx<Pat>,
},
}
Expand description
Kinds of HIR expressions.
These correspond to the basic forms in Chapter 2 of the Definition, after desugaring the derived forms from Appendix A.