Enum rustc_hir::hir::StmtKind [−][src]
pub enum StmtKind<'hir> {
Local(&'hir Local<'hir>),
Item(ItemId),
Expr(&'hir Expr<'hir>),
Semi(&'hir Expr<'hir>),
}Expand description
The contents of a statement.
Variants
Local(&'hir Local<'hir>)Expand description
A local (let) binding.
Item(ItemId)Expand description
An item binding.
Expr(&'hir Expr<'hir>)Expand description
An expression without a trailing semi-colon (must have unit type).
Semi(&'hir Expr<'hir>)Expand description
An expression with a trailing semi-colon (may have any type).
Trait Implementations
impl<'hir, __CTX> HashStable<__CTX> for StmtKind<'hir> where
__CTX: HashStableContext, [src]
impl<'hir, __CTX> HashStable<__CTX> for StmtKind<'hir> where
__CTX: HashStableContext, [src]