File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#![ allow( non_snake_case) ]
16
16
#![ doc( primitive = "char" ) ]
17
- #![ stable( feature = "rust1 " , since = "1.0 .0" ) ]
17
+ #![ stable( feature = "core_char " , since = "1.2 .0" ) ]
18
18
19
19
use iter:: Iterator ;
20
20
use mem:: transmute;
@@ -225,6 +225,7 @@ impl CharExt for char {
225
225
#[ inline]
226
226
#[ unstable( feature = "char_internals" ,
227
227
reason = "this function should not be exposed publicly" ) ]
228
+ #[ doc( hidden) ]
228
229
pub fn encode_utf8_raw ( code : u32 , dst : & mut [ u8 ] ) -> Option < usize > {
229
230
// Marked #[inline] to allow llvm optimizing it away
230
231
if code < MAX_ONE_B && !dst. is_empty ( ) {
@@ -258,6 +259,7 @@ pub fn encode_utf8_raw(code: u32, dst: &mut [u8]) -> Option<usize> {
258
259
#[ inline]
259
260
#[ unstable( feature = "char_internals" ,
260
261
reason = "this function should not be exposed publicly" ) ]
262
+ #[ doc( hidden) ]
261
263
pub fn encode_utf16_raw ( mut ch : u32 , dst : & mut [ u16 ] ) -> Option < usize > {
262
264
// Marked #[inline] to allow llvm optimizing it away
263
265
if ( ch & 0xFFFF ) == ch && !dst. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments