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