You can declare `mut` in the argument list, e.g. `fn unescape_entity<I: Iterator<u8>>(mut iter: I) -> ...`