Struct widestring::error::DecodeUtf32Error
source · [−]pub struct DecodeUtf32Error { /* private fields */ }
Expand description
An error that can be returned when decoding UTF-32 code points.
This error occurs when a u32
value is outside the 21-bit Unicode code point range
(>U+10FFFF
) or is a UTF-16 surrogate value.
Implementations
sourceimpl DecodeUtf32Error
impl DecodeUtf32Error
sourcepub fn invalid_code_point(&self) -> u32
pub fn invalid_code_point(&self) -> u32
Returns the invalid code point value which caused the error.
Trait Implementations
sourceimpl Clone for DecodeUtf32Error
impl Clone for DecodeUtf32Error
sourcefn clone(&self) -> DecodeUtf32Error
fn clone(&self) -> DecodeUtf32Error
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecodeUtf32Error
impl Debug for DecodeUtf32Error
sourceimpl Display for DecodeUtf32Error
impl Display for DecodeUtf32Error
sourceimpl Error for DecodeUtf32Error
impl Error for DecodeUtf32Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for DecodeUtf32Error
impl Send for DecodeUtf32Error
impl Sync for DecodeUtf32Error
impl Unpin for DecodeUtf32Error
impl UnwindSafe for DecodeUtf32Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more