fn print_families() -> Result<(), CargoFlashError> {
    logging::println("Available chips:");
    for family in probe_rs::config::families().map_err(CargoFlashError::FailedToReadFamilies)? {
        logging::println(&family.name);
        logging::println("    Variants:");
        for variant in family.variants() {
            logging::println(format!("        {}", variant.name));
        }
    }
    Ok(())
}
/// Print all the available families and their contained chips to the commandline.
Print all the available families and their contained chips to the commandline.
Print all the available families and their contained chips to the commandline .
fn print_families() -> Result<(), CargoFlashError> {
    logging::println("Available chips:");
    for family in probe_rs::config::families().map_err(CargoFlashError::FailedToReadFamilies)? {
        logging::println(&family.name);
        logging::println("    Variants:");
        for variant in family.variants() {
            logging::println(format!("        {}", variant.name));
        }
    }
    Ok(())
}
fn print_families ( ) -> Result < ( ) , CargoFlashError > { logging :: println ( " " ) ; for family in probe_rs :: config :: families ( ) . map_err ( CargoFlashError :: FailedToReadFamilies ) ? { logging :: println ( & family . name ) ; logging :: println ( " " ) ; for variant in family . variants ( ) { logging :: println ( format ! ( " " variant name ) ) ; } } Ok ( ( ) ) }
Print all the available families and their contained chips to the commandline.
Print all the available families and their contained chips to the commandline .