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 15
15
#![ allow( non_snake_case) ]
16
16
#![ stable( feature = "core_char" , since = "1.2.0" ) ]
17
17
18
- use iter:: Iterator ;
18
+ use iter:: { Iterator , ExactSizeIterator } ;
19
19
use mem:: transmute;
20
20
use option:: Option :: { None , Some } ;
21
21
use option:: Option ;
@@ -493,6 +493,9 @@ impl Iterator for EscapeUnicode {
493
493
}
494
494
}
495
495
496
+ #[ stable( feature = "rust1" , since = "1.7.0" ) ]
497
+ impl ExactSizeIterator for EscapeUnicode { }
498
+
496
499
/// An iterator that yields the literal escape code of a `char`.
497
500
///
498
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
+ #[ stable( feature = "rust1" , since = "1.7.0" ) ]
595
+ impl ExactSizeIterator for EscapeDefault { }
You can’t perform that action at this time.
0 commit comments