We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b321edd commit f65fbe9Copy full SHA for f65fbe9
library/core/src/char/methods.rs
@@ -9,6 +9,21 @@ use crate::unicode::{self, conversions};
9
use super::*;
10
11
impl char {
12
+ /// The lowest valid code point a `char` can have, `'\0'`.
13
+ ///
14
+ /// # Examples
15
16
+ /// ```
17
+ /// # fn something_which_returns_char() -> char { 'a' }
18
+ /// let c: char = something_which_returns_char();
19
+ /// assert!(char::MIN <= c);
20
21
+ /// let value_at_min = char::MIN as u32;
22
+ /// assert_eq!(char::from_u32(value_at_min), Some('\0'));
23
24
+ #[unstable(feature = "char_min", issue = "114298")]
25
+ pub const MIN: char = '\0';
26
+
27
/// The highest valid code point a `char` can have, `'\u{10FFFF}'`.
28
///
29
/// # Examples
0 commit comments