pub struct CatalogMatchScore {
pub relevance: CatalogMatchRank,
pub spelling: CatalogSpellingRank,
}Expand description
Complete literal relevance score shared by catalog frontends.
Fields§
§relevance: CatalogMatchRankStructural name/path relevance.
spelling: CatalogSpellingRankCase fidelity within that relevance tier.
Trait Implementations§
Source§impl Clone for CatalogMatchScore
impl Clone for CatalogMatchScore
Source§fn clone(&self) -> CatalogMatchScore
fn clone(&self) -> CatalogMatchScore
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 CatalogMatchScore
Source§impl Debug for CatalogMatchScore
impl Debug for CatalogMatchScore
impl Eq for CatalogMatchScore
Source§impl Ord for CatalogMatchScore
impl Ord for CatalogMatchScore
Source§fn cmp(&self, other: &CatalogMatchScore) -> Ordering
fn cmp(&self, other: &CatalogMatchScore) -> 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 CatalogMatchScore
impl PartialEq for CatalogMatchScore
Source§impl PartialOrd for CatalogMatchScore
impl PartialOrd for CatalogMatchScore
impl StructuralPartialEq for CatalogMatchScore
Auto Trait Implementations§
impl Freeze for CatalogMatchScore
impl RefUnwindSafe for CatalogMatchScore
impl Send for CatalogMatchScore
impl Sync for CatalogMatchScore
impl Unpin for CatalogMatchScore
impl UnsafeUnpin for CatalogMatchScore
impl UnwindSafe for CatalogMatchScore
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