Function clippy_utils::higher::get_vec_init_kind
source · pub fn get_vec_init_kind<'tcx>(
cx: &LateContext<'tcx>,
expr: &'tcx Expr<'tcx>
) -> Option<VecInitKind>
Expand description
Checks if given expression is an initialization of Vec
and returns its kind.