#[non_exhaustive]pub enum ComponentReason {
Unconstrained,
Exact,
Wildcard,
Substitution,
PatternMismatch,
CaseMismatch,
MissingQueryItem,
UnsupportedPredicate,
}Expand description
Why one component matched or failed.
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.
Unconstrained
The rule does not constrain this component, so it accepts anything.
Exact
A literal pattern compared equal.
Wildcard
A wildcard pattern matched.
Substitution
A pattern containing $(...) matched.
PatternMismatch
The pattern did not match.
CaseMismatch
The pattern would have matched if caseSensitive were false.
MissingQueryItem
A ? dictionary named a query item the URL does not carry.
UnsupportedPredicate
A ? predicate was not a string, so Apple ignored the whole ? dictionary and the
component constrained nothing.
Implementations§
Trait Implementations§
Source§impl Clone for ComponentReason
impl Clone for ComponentReason
Source§fn clone(&self) -> ComponentReason
fn clone(&self) -> ComponentReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComponentReason
Source§impl Debug for ComponentReason
impl Debug for ComponentReason
Source§impl Display for ComponentReason
impl Display for ComponentReason
impl Eq for ComponentReason
Source§impl PartialEq for ComponentReason
impl PartialEq for ComponentReason
Source§impl Serialize for ComponentReason
impl Serialize for ComponentReason
impl StructuralPartialEq for ComponentReason
Auto Trait Implementations§
impl Freeze for ComponentReason
impl RefUnwindSafe for ComponentReason
impl Send for ComponentReason
impl Sync for ComponentReason
impl Unpin for ComponentReason
impl UnsafeUnpin for ComponentReason
impl UnwindSafe for ComponentReason
Blanket Implementations§
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