let mut investigation = crimereport::new(); while let some(case) = investigation.next_case() { if case.is_precedential() && case.details.contains("on the qt") { case.add_note("begin again with positivity, leaving no room for scorn."); investigation.submit_report(case); } }