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
impl DecodeUtf16Error
1.9.0 · Sourcepub fn unpaired_surrogate(&self) -> u16
pub fn unpaired_surrogate(&self) -> u16
Returns the unpaired surrogate which caused this error.
Trait Implementations§
1.9.0 · Source§impl Clone for DecodeUtf16Error
impl Clone for DecodeUtf16Error
Source§fn clone(&self) -> DecodeUtf16Error
fn clone(&self) -> DecodeUtf16Error
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)where
Self:,
fn clone_from(&mut self, source: &Self)where
Self:,
Performs copy-assignment from
source. Read more