File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -518,14 +518,14 @@ impl AsciiChar {
518518 /// Gets this ASCII character as a byte.
519519 #[ unstable( feature = "ascii_char" , issue = "110998" ) ]
520520 #[ inline]
521- pub const fn as_u8 ( self ) -> u8 {
521+ pub const fn to_u8 ( self ) -> u8 {
522522 self as u8
523523 }
524524
525525 /// Gets this ASCII character as a `char` Unicode Scalar Value.
526526 #[ unstable( feature = "ascii_char" , issue = "110998" ) ]
527527 #[ inline]
528- pub const fn as_char ( self ) -> char {
528+ pub const fn to_char ( self ) -> char {
529529 self as u8 as char
530530 }
531531
Original file line number Diff line number Diff line change @@ -95,11 +95,11 @@ impl<const N: usize> EscapeIterInner<N> {
9595 }
9696
9797 pub fn next ( & mut self ) -> Option < u8 > {
98- self . alive . next ( ) . map ( |i| self . data [ usize:: from ( i) ] . as_u8 ( ) )
98+ self . alive . next ( ) . map ( |i| self . data [ usize:: from ( i) ] . to_u8 ( ) )
9999 }
100100
101101 pub fn next_back ( & mut self ) -> Option < u8 > {
102- self . alive . next_back ( ) . map ( |i| self . data [ usize:: from ( i) ] . as_u8 ( ) )
102+ self . alive . next_back ( ) . map ( |i| self . data [ usize:: from ( i) ] . to_u8 ( ) )
103103 }
104104
105105 pub fn advance_by ( & mut self , n : usize ) -> Result < ( ) , NonZeroUsize > {
You can’t perform that action at this time.
0 commit comments