pub enum HirStmt {
Expr(HirExprId),
Let {
name: String,
sigil: Sigil,
storage: DeclStorageClass,
init: Option<HirExprId>,
},
}Expand description
One statement node in the HIR body graph.
Variants§
Expr(HirExprId)
Expression statement: evaluate the expression for its side effects.
Let
Variable declaration: my $x = …
The init expression, when present, is the full initializer (which may
itself be an HirExpr::Assign that links the declared place to its
value).
Trait Implementations§
impl Eq for HirStmt
impl StructuralPartialEq for HirStmt
Auto Trait Implementations§
impl Freeze for HirStmt
impl RefUnwindSafe for HirStmt
impl Send for HirStmt
impl Sync for HirStmt
impl Unpin for HirStmt
impl UnsafeUnpin for HirStmt
impl UnwindSafe for HirStmt
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