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) -> Self
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: &Self) -> bool