File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1515#![ allow( non_snake_case) ]
1616#![ stable( feature = "core_char" , since = "1.2.0" ) ]
1717
18- use iter:: Iterator ;
18+ use iter:: { Iterator , ExactSizeIterator } ;
1919use mem:: transmute;
2020use option:: Option :: { None , Some } ;
2121use option:: Option ;
@@ -493,6 +493,9 @@ impl Iterator for EscapeUnicode {
493493 }
494494}
495495
496+ #[ stable( feature = "rust1" , since = "1.7.0" ) ]
497+ impl ExactSizeIterator for EscapeUnicode { }
498+
496499/// An iterator that yields the literal escape code of a `char`.
497500///
498501/// This `struct` is created by the [`escape_default()`] method on [`char`]. See
@@ -587,3 +590,6 @@ impl Iterator for EscapeDefault {
587590 }
588591 }
589592}
593+
594+ #[ stable( feature = "rust1" , since = "1.7.0" ) ]
595+ impl ExactSizeIterator for EscapeDefault { }
You can’t perform that action at this time.
0 commit comments