Skip to main content

diagnose_with

Function diagnose_with 

Source
pub fn diagnose_with(
    find: &dyn Fn(&str) -> Option<HelperFacts>,
) -> Vec<ComponentReport>
Expand description

Diagnose the environment, asking find what each optional helper turned out to be.

find is given a program name and returns what was found out about it, if anything. It is a parameter rather than a call because looking for a program — and starting it — is the business of the layer that runs one, and this crate does not run anything.

The order is stable so that output is deterministic.