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 0f5cf54 commit 41e0498Copy full SHA for 41e0498
src/libcore/str/mod.rs
@@ -553,7 +553,15 @@ impl<'a> Chars<'a> {
553
}
554
555
556
-/// Iterator for a string's characters and their byte offsets.
+/// An iterator over the [`char`]s of a string slice, and their positions.
557
+///
558
+/// [`char`]: ../../std/primitive.char.html
559
560
+/// This struct is created by the [`char_indices()`] method on [`str`].
561
+/// See its documentation for more.
562
563
+/// [`char_indices()`]: ../../std/primitive.str.html#method.char_indices
564
+/// [`str`]: ../../std/primitive.str.html
565
#[derive(Clone, Debug)]
566
#[stable(feature = "rust1", since = "1.0.0")]
567
pub struct CharIndices<'a> {
0 commit comments