File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -518,14 +518,14 @@ impl AsciiChar {
518
518
/// Gets this ASCII character as a byte.
519
519
#[ unstable( feature = "ascii_char" , issue = "110998" ) ]
520
520
#[ inline]
521
- pub const fn as_u8 ( self ) -> u8 {
521
+ pub const fn to_u8 ( self ) -> u8 {
522
522
self as u8
523
523
}
524
524
525
525
/// Gets this ASCII character as a `char` Unicode Scalar Value.
526
526
#[ unstable( feature = "ascii_char" , issue = "110998" ) ]
527
527
#[ inline]
528
- pub const fn as_char ( self ) -> char {
528
+ pub const fn to_char ( self ) -> char {
529
529
self as u8 as char
530
530
}
531
531
Original file line number Diff line number Diff line change @@ -95,11 +95,11 @@ impl<const N: usize> EscapeIterInner<N> {
95
95
}
96
96
97
97
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 ( ) )
99
99
}
100
100
101
101
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 ( ) )
103
103
}
104
104
105
105
pub fn advance_by ( & mut self , n : usize ) -> Result < ( ) , NonZeroUsize > {
You can’t perform that action at this time.
0 commit comments