pub fn candidates2writer<I, W>( ic: I, cwtr: W, ) -> impl FnOnce() -> Result<(), Error>where I: Iterator<Item = Result<Candidate, Error>>, W: FnMut(&Candidate) -> Result<(), Error>,