pub(crate) fn collect_for_closure<F>( position: &mut Peekable<Chars<'_>>, f: F, ) -> Stringwhere F: FnOnce(&char) -> bool + Copy,