Function clippy_utils::ty::contains_adt_constructor[−][src]

pub fn contains_adt_constructor<'tcx>(
    tcx: TyCtxt<'tcx>,
    ty: Ty<'tcx>,
    adt: &'tcx AdtDef
) -> bool
Expand description

Walks into ty and returns true if any inner type is an instance of the given adt constructor.