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.
EscapeUnicode
EscapeDefault
ExactSizeIterator
1 parent 1027e6a commit 7f5eae7Copy full SHA for 7f5eae7
src/libcore/char.rs
@@ -15,7 +15,7 @@
15
#![allow(non_snake_case)]
16
#![stable(feature = "core_char", since = "1.2.0")]
17
18
-use iter::Iterator;
+use iter::{Iterator, ExactSizeIterator};
19
use mem::transmute;
20
use option::Option::{None, Some};
21
use option::Option;
@@ -493,6 +493,9 @@ impl Iterator for EscapeUnicode {
493
}
494
495
496
+#[stable(feature = "rust1", since = "1.7.0")]
497
+impl ExactSizeIterator for EscapeUnicode { }
498
+
499
/// An iterator that yields the literal escape code of a `char`.
500
///
501
/// This `struct` is created by the [`escape_default()`] method on [`char`]. See
@@ -587,3 +590,6 @@ impl Iterator for EscapeDefault {
587
590
588
591
589
592
593
594
595
+impl ExactSizeIterator for EscapeDefault { }
0 commit comments