Function rustc_const_eval::eval_length [] [src]

pub fn eval_length<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                             count: BodyId,
                             reason: &str)
                             -> Result<usize, ErrorReported>
🔬 This is a nightly-only experimental API. (rustc_private)

Returns the value of the length-valued expression