#[non_exhaustive]pub enum PctErrorKind {
InvalidEscape,
BufferTooSmall,
}Expand description
What went wrong when percent-decoding a byte slice.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidEscape
A % was not followed by two hex digits.
BufferTooSmall
The output buffer was too small to hold the decoded result.
Trait Implementations§
Source§impl Clone for PctErrorKind
impl Clone for PctErrorKind
Source§fn clone(&self) -> PctErrorKind
fn clone(&self) -> PctErrorKind
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 PctErrorKind
impl Debug for PctErrorKind
Source§impl Display for PctErrorKind
impl Display for PctErrorKind
Source§impl From<PctErrorKind> for Error
impl From<PctErrorKind> for Error
Source§fn from(k: PctErrorKind) -> Self
fn from(k: PctErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PctErrorKind
impl PartialEq for PctErrorKind
impl Copy for PctErrorKind
impl Eq for PctErrorKind
impl StructuralPartialEq for PctErrorKind
Auto Trait Implementations§
impl Freeze for PctErrorKind
impl RefUnwindSafe for PctErrorKind
impl Send for PctErrorKind
impl Sync for PctErrorKind
impl Unpin for PctErrorKind
impl UnsafeUnpin for PctErrorKind
impl UnwindSafe for PctErrorKind
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