Function clippy_utils::is_block_like
source ยท pub fn is_block_like(expr: &Expr<'_>) -> bool
Expand description
Returns true if the given expr
is a block or resembled as a block,
such as if
, loop
, match
expressions etc.
pub fn is_block_like(expr: &Expr<'_>) -> bool
Returns true if the given expr
is a block or resembled as a block,
such as if
, loop
, match
expressions etc.