We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b4884 commit 5d14ccbCopy full SHA for 5d14ccb
src/libcollections/str.rs
@@ -133,9 +133,15 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
133
}
134
135
136
-/// External iterator for a string's UTF-16 code units.
+/// An iterator of [`u16`] over the string encoded as UTF-16.
137
///
138
-/// For use with the `std::iter` module.
+/// [`u16`]: ../../std/primitive.u16.html
139
+///
140
+/// This struct is created by the [`encode_utf16()`] method on [`str`].
141
+/// See its documentation for more.
142
143
+/// [`encode_utf16()`]: ../../std/primitive.str.html#method.encode_utf16
144
+/// [`str`]: ../../std/primitive.str.html
145
#[derive(Clone)]
146
#[stable(feature = "encode_utf16", since = "1.8.0")]
147
pub struct EncodeUtf16<'a> {
0 commit comments