Crate owned_chars

Source
Expand description

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!

Structs§

OwnedCharIndices
Iterator over the chars of a string and their indices (the string is owned by the iterator)
OwnedChars
Iterator over the chars of a string (the string is owned by the iterator)

Traits§

OwnedCharsExt
Extension trait for String providing owned char and char-index iterators