pub enum UnicodeError {
InvalidCodePoint(u32),
InvalidUtf8,
NormalizationFailed(String),
}Expand description
Errors that can occur during Unicode processing
Variants§
InvalidCodePoint(u32)
Invalid Unicode code point
InvalidUtf8
Invalid UTF-8 sequence
NormalizationFailed(String)
Unicode normalization failed
Trait Implementations§
Source§impl Clone for UnicodeError
impl Clone for UnicodeError
Source§fn clone(&self) -> UnicodeError
fn clone(&self) -> UnicodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnicodeError
impl Debug for UnicodeError
Source§impl Display for UnicodeError
impl Display for UnicodeError
Source§impl Error for UnicodeError
impl Error for UnicodeError
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()
Source§impl From<UnicodeError> for ParseError
impl From<UnicodeError> for ParseError
Source§fn from(err: UnicodeError) -> Self
fn from(err: UnicodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnicodeError
impl PartialEq for UnicodeError
Source§fn eq(&self, other: &UnicodeError) -> bool
fn eq(&self, other: &UnicodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnicodeError
Auto Trait Implementations§
impl Freeze for UnicodeError
impl RefUnwindSafe for UnicodeError
impl Send for UnicodeError
impl Sync for UnicodeError
impl Unpin for UnicodeError
impl UnsafeUnpin for UnicodeError
impl UnwindSafe for UnicodeError
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