pub enum SortKey {
LastUpdated,
Name,
Downloads,
Rating,
BestMatch,
}Expand description
The column browse orders packages by.
Variants§
LastUpdated
When the package was last updated.
Name
The short package name, ignoring case.
Downloads
Downloads summed over every version.
Rating
The rating score. Unset reads as zero.
BestMatch
How well a package matches the search, best
first in Descending order, ignoring
community pins. With no search words this sorts like
LastUpdated, pins included.
The first best-match search on an index folds every package’s text and keeps it with the index, so later searches only compare.
Trait Implementations§
impl Copy for SortKey
impl Eq for SortKey
impl StructuralPartialEq for SortKey
Auto Trait Implementations§
impl Forget for SortKey
impl Freeze for SortKey
impl Move for SortKey
impl RefUnwindSafe for SortKey
impl Send for SortKey
impl Sync for SortKey
impl Unpin for SortKey
impl UnsafeUnpin for SortKey
impl UnwindSafe for SortKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.