Enum SyntaxViolation
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: &Self) -> &'static str
impl Clone for SyntaxViolation
fn clone(self: &Self) -> SyntaxViolation
impl Copy for SyntaxViolation
impl Debug for SyntaxViolation
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Display for SyntaxViolation
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for SyntaxViolation
impl Freeze for SyntaxViolation
impl PartialEq for SyntaxViolation
fn eq(self: &Self, other: &SyntaxViolation) -> bool
impl RefUnwindSafe for SyntaxViolation
impl Send for SyntaxViolation
impl StructuralPartialEq for SyntaxViolation
impl Sync for SyntaxViolation
impl Unpin for SyntaxViolation
impl UnsafeUnpin for SyntaxViolation
impl UnwindSafe for SyntaxViolation
impl<T> Any for SyntaxViolation
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for SyntaxViolation
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for SyntaxViolation
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for SyntaxViolation
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> ErasedDestructor for SyntaxViolation
impl<T> From for SyntaxViolation
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SyntaxViolation
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for SyntaxViolation
fn to_string(self: &Self) -> String
impl<T, U> Into for SyntaxViolation
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for SyntaxViolation
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for SyntaxViolation
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>