Module encode_unicode::iterator
source · Expand description
Iterator types that you should rarely need to name
Structs
An
Utf8CharMerger
that also produces
offsets and lengths, but can only iterate over slices.An iterator over the
Utf8Char
of a string slice, and their positions.Decodes UTF-8 characters from a byte iterator into
Utf8Char
s.The iterator type returned by
iter_bytes()
An iterator over the codepoints in a
str
represented as Utf8Char
.Read or iterate over the bytes of the UTF-8 representation of a codepoint.
An
Utf16CharMerger
that also produces
offsets and lengths, but can only iterate over slices.An iterator over the codepoints in a
str
represented as Utf16Char
.Decodes UTF-16 characters from a
u16
iterator into Utf16Char
s.The iterator type returned by
iter_units()
An iterator over the codepoints in a
str
represented as Utf16Char
.Iterate over the units of the UTF-16 representation of a codepoint.