pub enum CatalogMatchRank {
Exact,
ComponentSuffix,
Prefix,
Substring,
NoMatch,
Unranked,
}Expand description
Stable relevance tier for literal catalog matching.
Frontends may add deterministic tie-breakers inside one tier, but must not place a prefix after a mere substring or an exact name after either.
Variants§
Exact
Complete name or path equality.
ComponentSuffix
Pattern equals the final slash-delimited path component.
Prefix
Name or path begins with the pattern.
Substring
Pattern occurs elsewhere in the name or path.
NoMatch
A literal pattern was supplied but does not occur in this candidate.
Unranked
No literal pattern was supplied.
Trait Implementations§
Source§impl Clone for CatalogMatchRank
impl Clone for CatalogMatchRank
Source§fn clone(&self) -> CatalogMatchRank
fn clone(&self) -> CatalogMatchRank
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 CatalogMatchRank
Source§impl Debug for CatalogMatchRank
impl Debug for CatalogMatchRank
impl Eq for CatalogMatchRank
Source§impl Ord for CatalogMatchRank
impl Ord for CatalogMatchRank
Source§fn cmp(&self, other: &CatalogMatchRank) -> Ordering
fn cmp(&self, other: &CatalogMatchRank) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CatalogMatchRank
impl PartialEq for CatalogMatchRank
Source§impl PartialOrd for CatalogMatchRank
impl PartialOrd for CatalogMatchRank
impl StructuralPartialEq for CatalogMatchRank
Auto Trait Implementations§
impl Freeze for CatalogMatchRank
impl RefUnwindSafe for CatalogMatchRank
impl Send for CatalogMatchRank
impl Sync for CatalogMatchRank
impl Unpin for CatalogMatchRank
impl UnsafeUnpin for CatalogMatchRank
impl UnwindSafe for CatalogMatchRank
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