Struct ra_ap_hir_def::body::Body [−][src]
pub struct Body { pub exprs: Arena<Expr>, pub pats: Arena<Pat>, pub labels: Arena<Label>, pub params: Vec<PatId>, pub body_expr: ExprId, // some fields omitted }
Expand description
The body of an item (function, const etc.).
Fields
exprs: Arena<Expr>
pats: Arena<Pat>
labels: Arena<Label>
params: Vec<PatId>
The patterns for the function’s parameters. While the parameter types are part of the function signature, the patterns are not (they don’t change the external type of the function).
If this Body
is for the body of a constant, this will just be
empty.
body_expr: ExprId
The ExprId
of the actual body expression.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Body
impl UnwindSafe for Body
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.