Skip to main content

is_const_evaluatable_helper

Function is_const_evaluatable_helper 

Source
fn is_const_evaluatable_helper<'tcx>(
    tcx: TyCtxt<'tcx>,
    typeck: &'tcx TypeckResults<'tcx>,
    e: &'tcx Expr<'_>,
) -> bool
Expand description

Returns whether the given expression can be evaluated as a constant assuming that all its sub expressions can be evaluated as constants.