Skip to main content

unwrap_array_expr

Function unwrap_array_expr 

Source
pub(crate) fn unwrap_array_expr<'tcx>(
    tcx: TyCtxt<'tcx>,
    def_id: DefId,
    expr: &Expr,
) -> Option<Ty<'tcx>>
Expand description

Extract the inner type from an Expr::Array (the [T] notation in SplitTransmute([T], [U])), then resolve it via parse_type.