pub fn search_supplies(
entry: &MachineEntry,
cfg: &Config,
supplies: &[&str],
wanted: &dyn Fn(&str) -> bool,
gearboxes: Option<&str>,
axes: bool,
motor: Option<&str>,
) -> Result<Vec<Candidate>, ConfigError>Expand description
The search at several supplies (SUPPLIES; vendor_of tells a supply’s maker), ranked together (rank): with motor
a machine’s one motor of that id (search_motor), else with axes every axis (search_axes), else the config’s
(search_motors). Each candidate says its supply, and with it its maker (vendor_of). An axis refused before any
motor was tried is listed once.