@@ -229,6 +229,7 @@ impl EscapeDefault {
229229 Self ( escape:: EscapeIterInner :: from_array ( data) )
230230 }
231231
232+ #[ inline]
232233 fn from_unicode ( esc : EscapeUnicode ) -> Self {
233234 Self ( esc. 0 )
234235 }
@@ -304,6 +305,7 @@ enum EscapeDebugInner {
304305}
305306
306307impl EscapeDebug {
308+ #[ inline]
307309 fn printable ( chr : char ) -> Self {
308310 Self ( EscapeDebugInner :: Char ( chr) )
309311 }
@@ -314,6 +316,7 @@ impl EscapeDebug {
314316 Self ( EscapeDebugInner :: Bytes ( iter) )
315317 }
316318
319+ #[ inline]
317320 fn from_unicode ( esc : EscapeUnicode ) -> Self {
318321 Self ( EscapeDebugInner :: Bytes ( esc. 0 ) )
319322 }
@@ -339,6 +342,7 @@ impl Iterator for EscapeDebug {
339342 }
340343 }
341344
345+ #[ inline]
342346 fn size_hint ( & self ) -> ( usize , Option < usize > ) {
343347 let n = self . len ( ) ;
344348 ( n, Some ( n) )
@@ -352,6 +356,7 @@ impl Iterator for EscapeDebug {
352356
353357#[ stable( feature = "char_escape_debug" , since = "1.20.0" ) ]
354358impl ExactSizeIterator for EscapeDebug {
359+ #[ inline]
355360 fn len ( & self ) -> usize {
356361 match & self . 0 {
357362 EscapeDebugInner :: Bytes ( bytes) => bytes. len ( ) ,
@@ -389,6 +394,7 @@ impl Iterator for ToLowercase {
389394 fn next ( & mut self ) -> Option < char > {
390395 self . 0 . next ( )
391396 }
397+ #[ inline]
392398 fn size_hint ( & self ) -> ( usize , Option < usize > ) {
393399 self . 0 . size_hint ( )
394400 }
@@ -423,6 +429,7 @@ impl Iterator for ToUppercase {
423429 fn next ( & mut self ) -> Option < char > {
424430 self . 0 . next ( )
425431 }
432+ #[ inline]
426433 fn size_hint ( & self ) -> ( usize , Option < usize > ) {
427434 self . 0 . size_hint ( )
428435 }
@@ -450,6 +457,7 @@ enum CaseMappingIter {
450457}
451458
452459impl CaseMappingIter {
460+ #[ inline]
453461 fn new ( chars : [ char ; 3 ] ) -> CaseMappingIter {
454462 if chars[ 2 ] == '\0' {
455463 if chars[ 1 ] == '\0' {
@@ -465,6 +473,7 @@ impl CaseMappingIter {
465473
466474impl Iterator for CaseMappingIter {
467475 type Item = char ;
476+ #[ inline]
468477 fn next ( & mut self ) -> Option < char > {
469478 match * self {
470479 CaseMappingIter :: Three ( a, b, c) => {
@@ -483,6 +492,7 @@ impl Iterator for CaseMappingIter {
483492 }
484493 }
485494
495+ #[ inline]
486496 fn size_hint ( & self ) -> ( usize , Option < usize > ) {
487497 let size = match self {
488498 CaseMappingIter :: Three ( ..) => 3 ,
@@ -495,6 +505,7 @@ impl Iterator for CaseMappingIter {
495505}
496506
497507impl DoubleEndedIterator for CaseMappingIter {
508+ #[ inline]
498509 fn next_back ( & mut self ) -> Option < char > {
499510 match * self {
500511 CaseMappingIter :: Three ( a, b, c) => {
0 commit comments