pub enum PunycodeError {
NotAscii,
Incomplete,
InvalidDigit,
InvalidCodePoint,
}Expand description
An error from decode.
Variants§
NotAscii
The input contained a non-ASCII byte (Punycode is ASCII-only).
Incomplete
The extended part ended mid-number.
InvalidDigit
The extended part contained a byte that is not a valid base-36 digit.
InvalidCodePoint
Decoding produced a code point that is not a valid character.
Trait Implementations§
Source§impl Clone for PunycodeError
impl Clone for PunycodeError
Source§fn clone(&self) -> PunycodeError
fn clone(&self) -> PunycodeError
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 PunycodeError
impl Debug for PunycodeError
Source§impl Display for PunycodeError
impl Display for PunycodeError
impl Eq for PunycodeError
Source§impl Error for PunycodeError
impl Error for PunycodeError
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 PunycodeError
impl PartialEq for PunycodeError
impl StructuralPartialEq for PunycodeError
Auto Trait Implementations§
impl Freeze for PunycodeError
impl RefUnwindSafe for PunycodeError
impl Send for PunycodeError
impl Sync for PunycodeError
impl Unpin for PunycodeError
impl UnsafeUnpin for PunycodeError
impl UnwindSafe for PunycodeError
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