Skip to main content

tuple_elems

Function tuple_elems 

Source
fn tuple_elems<'hir>(
    expr: &'hir Expr<'hir>,
) -> Option<&'hir [Option<&'hir Expr<'hir>>]>
Expand description

Returns the slot expressions of a tuple literal (after peeling parens), or None when expr is not a tuple. Slots themselves may be None (gaps in a tuple LHS).