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§
Source§impl 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§
Source§impl Clone for DecodeUtf32Error
impl Clone for DecodeUtf32Error
Source§fn clone(&self) -> DecodeUtf32Error
fn clone(&self) -> DecodeUtf32Error
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeUtf32Error
impl Debug for DecodeUtf32Error
Source§impl Display for DecodeUtf32Error
impl Display for DecodeUtf32Error
Source§impl Error for DecodeUtf32Error
Available on crate feature std only.
impl Error for DecodeUtf32Error
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DecodeUtf32Error
impl RefUnwindSafe for DecodeUtf32Error
impl Send for DecodeUtf32Error
impl Sync for DecodeUtf32Error
impl Unpin for DecodeUtf32Error
impl UnwindSafe for DecodeUtf32Error
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
Mutably borrows from an owned value. Read more