#[non_exhaustive]pub enum SchemeError {
Empty,
InvalidCharacter,
StartsWithNonAlphabetic,
}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.
Empty
The scheme component was empty.
InvalidCharacter
The scheme contained an invalid scheme character.
StartsWithNonAlphabetic
The scheme did not start with an alphabetic character.
Trait Implementations§
Source§impl Clone for SchemeError
impl Clone for SchemeError
Source§fn clone(&self) -> SchemeError
fn clone(&self) -> SchemeError
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 Debug for SchemeError
impl Debug for SchemeError
Source§impl Display for SchemeError
impl Display for SchemeError
Source§impl Error for SchemeError
impl Error for SchemeError
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 From<Infallible> for SchemeError
impl From<Infallible> for SchemeError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<SchemeError> for URIError
impl From<SchemeError> for URIError
Source§fn from(value: SchemeError) -> Self
fn from(value: SchemeError) -> Self
Converts to this type from the input type.
Source§impl From<SchemeError> for URIReferenceError
impl From<SchemeError> for URIReferenceError
Source§fn from(value: SchemeError) -> Self
fn from(value: SchemeError) -> Self
Converts to this type from the input type.
Source§impl Hash for SchemeError
impl Hash for SchemeError
Source§impl PartialEq for SchemeError
impl PartialEq for SchemeError
impl Copy for SchemeError
impl Eq for SchemeError
impl StructuralPartialEq for SchemeError
Auto Trait Implementations§
impl Freeze for SchemeError
impl RefUnwindSafe for SchemeError
impl Send for SchemeError
impl Sync for SchemeError
impl Unpin for SchemeError
impl UnwindSafe for SchemeError
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