Enum bonsaidb::client::url::SyntaxViolation
source · #[non_exhaustive]pub enum SyntaxViolation {
Backslash,
C0SpaceIgnored,
EmbeddedCredentials,
ExpectedDoubleSlash,
ExpectedFileDoubleSlash,
FileWithHostAndWindowsDrive,
NonUrlCodePoint,
NullInFragment,
PercentDecode,
TabOrNewlineIgnored,
UnencodedAtSign,
}
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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Backslash
C0SpaceIgnored
EmbeddedCredentials
ExpectedDoubleSlash
ExpectedFileDoubleSlash
FileWithHostAndWindowsDrive
NonUrlCodePoint
NullInFragment
PercentDecode
TabOrNewlineIgnored
UnencodedAtSign
Implementations§
source§impl SyntaxViolation
impl SyntaxViolation
pub fn description(&self) -> &'static str
Trait Implementations§
source§impl Clone for SyntaxViolation
impl Clone for SyntaxViolation
source§fn clone(&self) -> SyntaxViolation
fn clone(&self) -> SyntaxViolation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SyntaxViolation
impl Debug for SyntaxViolation
source§impl Display for SyntaxViolation
impl Display for SyntaxViolation
source§impl PartialEq for SyntaxViolation
impl PartialEq for SyntaxViolation
source§fn eq(&self, other: &SyntaxViolation) -> bool
fn eq(&self, other: &SyntaxViolation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.