## collect_items_of_instance

# Function collect_items_of_instance

Source

    fn collect_items_of_instance<'tcx>(
        tcx: TyCtxt<'tcx>,
        instance: Instance<'tcx>,
        mode: CollectionMode,
    ) -> Result<(MonoItems<'tcx>, MonoItems<'tcx>), NormalizationErrorInMono>

Expand description

Scans the MIR in order to find function calls, closures, and drop-glue.

Anything that’s found is added to `output`. Furthermore the “mentioned items” of the MIR are returned.