Function malachite_base::chars::crement::increment_char
source · pub fn increment_char(c: &mut char)
Expand description
Increments this char
, skipping over the surrogate code
points.
§Panics
Panics if self
is char::MAX
.
§Examples
use malachite_base::chars::crement::increment_char;
let mut c = '\u{0}';
increment_char(&mut c);
assert_eq!(c, '\u{1}');
let mut c = 'a';
increment_char(&mut c);
assert_eq!(c, 'b');