Enum uriparse::scheme::InvalidScheme
source · #[non_exhaustive]
pub enum InvalidScheme {
CannotBeEmpty,
InvalidCharacter,
MustStartWithAlphabetic,
}
Expand description
An error representing an invalid scheme.
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.
CannotBeEmpty
The scheme component was empty.
InvalidCharacter
The scheme contained an invalid scheme character.
MustStartWithAlphabetic
The scheme did not start with an alphabetic character.
Trait Implementations
sourceimpl Clone for InvalidScheme
impl Clone for InvalidScheme
sourcefn clone(&self) -> InvalidScheme
fn clone(&self) -> InvalidScheme
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InvalidScheme
impl Debug for InvalidScheme
sourceimpl Display for InvalidScheme
impl Display for InvalidScheme
sourceimpl Error for InvalidScheme
impl Error for InvalidScheme
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<!> for InvalidScheme
impl From<!> for InvalidScheme
sourceimpl From<InvalidScheme> for InvalidURI
impl From<InvalidScheme> for InvalidURI
sourcefn from(value: InvalidScheme) -> Self
fn from(value: InvalidScheme) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidScheme> for InvalidURIReference
impl From<InvalidScheme> for InvalidURIReference
sourcefn from(value: InvalidScheme) -> Self
fn from(value: InvalidScheme) -> Self
Converts to this type from the input type.
sourceimpl Hash for InvalidScheme
impl Hash for InvalidScheme
sourceimpl PartialEq<InvalidScheme> for InvalidScheme
impl PartialEq<InvalidScheme> for InvalidScheme
sourcefn eq(&self, other: &InvalidScheme) -> bool
fn eq(&self, other: &InvalidScheme) -> bool
impl Copy for InvalidScheme
impl Eq for InvalidScheme
impl StructuralEq for InvalidScheme
impl StructuralPartialEq for InvalidScheme
Auto Trait Implementations
impl RefUnwindSafe for InvalidScheme
impl Send for InvalidScheme
impl Sync for InvalidScheme
impl Unpin for InvalidScheme
impl UnwindSafe for InvalidScheme
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more