Struct std::char::DecodeUtf16Error
1.9.0 · source · pub struct DecodeUtf16Error { /* private fields */ }
Expand description
解码 UTF-16 代码点时可以返回的错误。
该 struct
是在使用 DecodeUtf16
类型时创建的。
Implementations§
source§impl DecodeUtf16Error
impl DecodeUtf16Error
sourcepub fn unpaired_surrogate(&self) -> u16
pub fn unpaired_surrogate(&self) -> u16
返回导致此错误的未配对代理。
Trait Implementations§
source§impl Clone for DecodeUtf16Error
impl Clone for DecodeUtf16Error
source§fn clone(&self) -> DecodeUtf16Error
fn clone(&self) -> DecodeUtf16Error
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl Debug for DecodeUtf16Error
impl Debug for DecodeUtf16Error
source§impl Display for DecodeUtf16Error
impl Display for DecodeUtf16Error
source§impl Error for DecodeUtf16Error
impl Error for DecodeUtf16Error
source§impl PartialEq<DecodeUtf16Error> for DecodeUtf16Error
impl PartialEq<DecodeUtf16Error> for DecodeUtf16Error
impl Eq for DecodeUtf16Error
impl StructuralEq for DecodeUtf16Error
impl StructuralPartialEq for DecodeUtf16Error
Auto Trait Implementations§
impl RefUnwindSafe for DecodeUtf16Error
impl Send for DecodeUtf16Error
impl Sync for DecodeUtf16Error
impl Unpin for DecodeUtf16Error
impl UnwindSafe for DecodeUtf16Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值中借用。 Read more