pub struct InvalidFragment<T>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Debug> Debug for InvalidFragment<T>
impl<T: Debug> Debug for InvalidFragment<T>
Source§impl<T: Display> Display for InvalidFragment<T>
impl<T: Display> Display for InvalidFragment<T>
Source§impl<T: Debug + Display> Error for InvalidFragment<T>
impl<T: Debug + Display> Error for InvalidFragment<T>
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<'a> From<InvalidFragment<&'a [u8]>> for UriError<Cow<'a, [u8]>>
impl<'a> From<InvalidFragment<&'a [u8]>> for UriError<Cow<'a, [u8]>>
Source§fn from(InvalidFragment: InvalidFragment<&'a [u8]>) -> Self
fn from(InvalidFragment: InvalidFragment<&'a [u8]>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<InvalidFragment<&'a str>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidFragment<&'a str>> for UriError<Cow<'a, str>>
Source§fn from(InvalidFragment: InvalidFragment<&'a str>) -> Self
fn from(InvalidFragment: InvalidFragment<&'a str>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<InvalidFragment<String>> for UriError<Cow<'a, str>>
impl<'a> From<InvalidFragment<String>> for UriError<Cow<'a, str>>
Source§fn from(InvalidFragment: InvalidFragment<String>) -> Self
fn from(InvalidFragment: InvalidFragment<String>) -> Self
Converts to this type from the input type.
Source§impl<T> From<InvalidFragment<T>> for UriError<T>
impl<T> From<InvalidFragment<T>> for UriError<T>
Source§fn from(source: InvalidFragment<T>) -> Self
fn from(source: InvalidFragment<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for InvalidFragment<T>where
T: Freeze,
impl<T> RefUnwindSafe for InvalidFragment<T>where
T: RefUnwindSafe,
impl<T> Send for InvalidFragment<T>where
T: Send,
impl<T> Sync for InvalidFragment<T>where
T: Sync,
impl<T> Unpin for InvalidFragment<T>where
T: Unpin,
impl<T> UnwindSafe for InvalidFragment<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