pub enum Utf64Error {
InvalidUtf8,
InvalidUtf64,
NonZeroReservedBits,
}Expand description
Errors that can occur during UTF64 encoding and decoding operations.
Variants§
InvalidUtf8
The input contains invalid UTF-8 data that cannot be encoded to UTF64.
InvalidUtf64
The UTF64 data is malformed or contains invalid sequences.
NonZeroReservedBits
Reserved bits are not zero (violates UTF64 v1.0 specification).
The UTF64 v1.0 specification requires the lower 32 bits of each character to be zero. This error indicates data that may be from a future UTF64 specification version, or corrupted data.
Trait Implementations§
Source§impl Clone for Utf64Error
impl Clone for Utf64Error
Source§fn clone(&self) -> Utf64Error
fn clone(&self) -> Utf64Error
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 Utf64Error
impl Debug for Utf64Error
Source§impl Display for Utf64Error
impl Display for Utf64Error
Source§impl Error for Utf64Error
impl Error for Utf64Error
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 PartialEq for Utf64Error
impl PartialEq for Utf64Error
impl Eq for Utf64Error
impl StructuralPartialEq for Utf64Error
Auto Trait Implementations§
impl Freeze for Utf64Error
impl RefUnwindSafe for Utf64Error
impl Send for Utf64Error
impl Sync for Utf64Error
impl Unpin for Utf64Error
impl UnwindSafe for Utf64Error
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