kvarn_async::prelude::compact_str::core::char

Struct DecodeUtf16Error

1.9.0 · source
pub struct DecodeUtf16Error { /* private fields */ }
Expand description

An error that can be returned when decoding UTF-16 code points.

This struct is created when using the DecodeUtf16 type.

Implementations§

source§

impl DecodeUtf16Error

1.9.0 · source

pub fn unpaired_surrogate(&self) -> u16

Returns the unpaired surrogate which caused this error.

Trait Implementations§

1.9.0 ·