Enum url::SyntaxViolation
source · [−]pub enum SyntaxViolation {
Backslash,
C0SpaceIgnored,
EmbeddedCredentials,
ExpectedDoubleSlash,
ExpectedFileDoubleSlash,
FileWithHostAndWindowsDrive,
NonUrlCodePoint,
NullInFragment,
PercentDecode,
TabOrNewlineIgnored,
UnencodedAtSign,
// some variants omitted
}
Expand description
Non-fatal syntax violations that can occur during parsing.
This may be extended in the future so exhaustive matching is discouraged with an unused variant.
Variants
Backslash
C0SpaceIgnored
EmbeddedCredentials
ExpectedDoubleSlash
ExpectedFileDoubleSlash
FileWithHostAndWindowsDrive
NonUrlCodePoint
NullInFragment
PercentDecode
TabOrNewlineIgnored
UnencodedAtSign
Implementations
sourceimpl SyntaxViolation
impl SyntaxViolation
pub fn description(&self) -> &'static str
Trait Implementations
sourceimpl Clone for SyntaxViolation
impl Clone for SyntaxViolation
sourcefn clone(&self) -> SyntaxViolation
fn clone(&self) -> SyntaxViolation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SyntaxViolation
impl Debug for SyntaxViolation
sourceimpl Display for SyntaxViolation
impl Display for SyntaxViolation
sourceimpl PartialEq<SyntaxViolation> for SyntaxViolation
impl PartialEq<SyntaxViolation> for SyntaxViolation
impl Copy for SyntaxViolation
impl Eq for SyntaxViolation
impl StructuralEq for SyntaxViolation
impl StructuralPartialEq for SyntaxViolation
Auto Trait Implementations
impl RefUnwindSafe for SyntaxViolation
impl Send for SyntaxViolation
impl Sync for SyntaxViolation
impl Unpin for SyntaxViolation
impl UnwindSafe for SyntaxViolation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more