This crate provides two owned iterators over String: OwnedChars and OwnedCharIndices. They have the same output as Chars and CharIndices, but creating the iterator consumes the String as opposed to borrowing.
Do you think this should be included in Rust proper? Comment here if so!
Iterator over the chars of a string and their indices (the string is owned by the iterator)
Iterator over the chars of a string (the string is owned by the iterator)
Extension trait for String providing owned char and char-index iterators