Skip to main content

vec_elem_ty

Function vec_elem_ty 

Source
pub(crate) fn vec_elem_ty<'tcx>(
    _tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
) -> Option<Ty<'tcx>>
Expand description

Element type of a Vec<T>, if ty is a Vec.