Enum rustc_unicode::str::Utf16Item
[−]
[src]
pub enum Utf16Item { ScalarValue(char), LoneSurrogate(u16), }
Unstable
The possibilities for values decoded from a u16
`u16` stream.
Variants
ScalarValue | Unstable A valid codepoint. |
LoneSurrogate | Unstable An invalid surrogate without its pair. |
Methods
impl Utf16Item
fn to_char_lossy(&self) -> char
Unstable
Convert self
`selfto a
` to a char
`char, taking
`, taking LoneSurrogate
`LoneSurrogate`s to the
replacement character (U+FFFD).