Struct pct_str::InvalidPctString
source · pub struct InvalidPctString<T>(pub T);
Expand description
Encoding error.
Raised when a given input string is not percent-encoded as expected.
Tuple Fields§
§0: T
Implementations§
source§impl<T> InvalidPctString<T>
impl<T> InvalidPctString<T>
pub fn map<U>(self, f: impl FnOnce(T) -> U) -> InvalidPctString<U>
source§impl<'a, T: ?Sized + ToOwned> InvalidPctString<&'a T>
impl<'a, T: ?Sized + ToOwned> InvalidPctString<&'a T>
pub fn into_owned(self) -> InvalidPctString<T::Owned>
Trait Implementations§
source§impl<T: Clone> Clone for InvalidPctString<T>
impl<T: Clone> Clone for InvalidPctString<T>
source§fn clone(&self) -> InvalidPctString<T>
fn clone(&self) -> InvalidPctString<T>
Returns a copy 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<T: Debug> Debug for InvalidPctString<T>
impl<T: Debug> Debug for InvalidPctString<T>
source§impl<T> Display for InvalidPctString<T>
impl<T> Display for InvalidPctString<T>
source§impl<T> Error for InvalidPctString<T>where
Self: Debug + Display,
impl<T> Error for InvalidPctString<T>where Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T> RefUnwindSafe for InvalidPctString<T>where T: RefUnwindSafe,
impl<T> Send for InvalidPctString<T>where T: Send,
impl<T> Sync for InvalidPctString<T>where T: Sync,
impl<T> Unpin for InvalidPctString<T>where T: Unpin,
impl<T> UnwindSafe for InvalidPctString<T>where T: UnwindSafe,
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