Skip to content

Commit 16b8f73

Browse files
committed
Add std::ascii::Char MIN and MAX constants
1 parent 59ab218 commit 16b8f73

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/core/src/ascii/ascii_char.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,14 @@ pub enum AsciiChar {
445445
}
446446

447447
impl AsciiChar {
448+
/// The character with the lowest ASCII code.
449+
#[unstable(feature = "ascii_char", issue = "110998")]
450+
pub const MIN: Self = Self::Null;
451+
452+
/// The character with the highest ASCII code.
453+
#[unstable(feature = "ascii_char", issue = "110998")]
454+
pub const MAX: Self = Self::Delete;
455+
448456
/// Creates an ASCII character from the byte `b`,
449457
/// or returns `None` if it's too large.
450458
#[unstable(feature = "ascii_char", issue = "110998")]

0 commit comments

Comments
 (0)