Enum SyntaxViolation
#[non_exhaustive]
pub enum SyntaxViolation
Non-fatal syntax violations that can occur during parsing.
This may be extended in the future so exhaustive matching is forbidden.
Variants
-
Backslash backslash-
C0SpaceIgnored leading or trailing control or space character are ignored in URLs-
EmbeddedCredentials embedding authentication information (username or password) in an URL is not recommended-
ExpectedDoubleSlash expected //-
ExpectedFileDoubleSlash expected // after file:-
FileWithHostAndWindowsDrive file: with host and Windows drive letter-
NonUrlCodePoint non-URL code point-
NullInFragment NULL characters are ignored in URL fragment identifiers-
PercentDecode expected 2 hex digits after %-
TabOrNewlineIgnored tabs or newlines are ignored in URLs-
UnencodedAtSign unencoded @ sign in username or password
Implementations
impl SyntaxViolation
fn description(&self) -> &'static str
Trait Implementations
impl Clone for SyntaxViolation
fn clone(&self) -> SyntaxViolation
impl Copy for SyntaxViolation
impl Debug for SyntaxViolation
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for SyntaxViolation
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for SyntaxViolation
impl PartialEq for SyntaxViolation
fn eq(&self, other: &SyntaxViolation) -> bool
impl StructuralPartialEq for SyntaxViolation
Auto Trait Implementations
impl Freeze for SyntaxViolation
impl RefUnwindSafe for SyntaxViolation
impl Send for SyntaxViolation
impl Sync for SyntaxViolation
impl Unpin for SyntaxViolation
impl UnsafeUnpin for SyntaxViolation
impl UnwindSafe for SyntaxViolation
Blanket Implementations
impl<T> Any for SyntaxViolation
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SyntaxViolation
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SyntaxViolation
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SyntaxViolation
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SyntaxViolation
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SyntaxViolation
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for SyntaxViolation
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for SyntaxViolation
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SyntaxViolation
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SyntaxViolation
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>