File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ pub unsafe fn from_u32_unchecked(i: u32) -> char {
115
115
116
116
#[ stable( feature = "char_convert" , since = "1.13.0" ) ]
117
117
impl From < char > for u32 {
118
+ /// Converts a [`char`] into a [`u32`].
119
+ ///
120
+ /// [`char`]: primitive.char.html
121
+ /// [`u32`]: primitive.u32.html
118
122
#[ inline]
119
123
fn from ( c : char ) -> Self {
120
124
c as u32
@@ -141,6 +145,10 @@ impl From<char> for u32 {
141
145
/// C0 and C1 control codes.
142
146
#[ stable( feature = "char_convert" , since = "1.13.0" ) ]
143
147
impl From < u8 > for char {
148
+ /// Converts a [`u8`] into a [`char`].
149
+ ///
150
+ /// [`u8`]: primitive.u8.html
151
+ /// [`char`]: primitive.char.html
144
152
#[ inline]
145
153
fn from ( i : u8 ) -> Self {
146
154
i as char
You can’t perform that action at this time.
0 commit comments