Enum url::SyntaxViolation [−][src]
pub enum SyntaxViolation {
Backslash,
C0SpaceIgnored,
EmbeddedCredentials,
ExpectedDoubleSlash,
ExpectedFileDoubleSlash,
FileWithHostAndWindowsDrive,
NonUrlCodePoint,
NullInFragment,
PercentDecode,
TabOrNewlineIgnored,
UnencodedAtSign,
}Non-fatal syntax violations that can occur during parsing.
Variants
BackslashC0SpaceIgnoredEmbeddedCredentialsExpectedDoubleSlashExpectedFileDoubleSlashFileWithHostAndWindowsDriveNonUrlCodePointNullInFragmentPercentDecodeTabOrNewlineIgnoredUnencodedAtSign
Methods
impl SyntaxViolation[src]
impl SyntaxViolationpub fn description(&self) -> &'static str[src]
pub fn description(&self) -> &'static strTrait Implementations
impl PartialEq for SyntaxViolation[src]
impl PartialEq for SyntaxViolationfn eq(&self, other: &SyntaxViolation) -> bool[src]
fn eq(&self, other: &SyntaxViolation) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for SyntaxViolation[src]
impl Eq for SyntaxViolationimpl Clone for SyntaxViolation[src]
impl Clone for SyntaxViolationfn clone(&self) -> SyntaxViolation[src]
fn clone(&self) -> SyntaxViolationReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for SyntaxViolation[src]
impl Copy for SyntaxViolationimpl Debug for SyntaxViolation[src]
impl Debug for SyntaxViolationfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for SyntaxViolation[src]
impl Display for SyntaxViolationAuto Trait Implementations
impl Send for SyntaxViolation
impl Send for SyntaxViolationimpl Sync for SyntaxViolation
impl Sync for SyntaxViolation