pub enum DataPattern {
Sorted,
ReverseSorted,
NearlySorted,
Random,
FewUnique,
Unknown,
}Expand description
Data pattern types
Variants§
Sorted
Already sorted or nearly sorted
ReverseSorted
Reverse sorted
NearlySorted
Mostly sorted with few elements out of place
Random
Random distribution
FewUnique
Many duplicate values
Unknown
Unknown pattern
Implementations§
Source§impl DataPattern
impl DataPattern
Sourcepub fn recommended_sort(&self) -> Vec<&'static str>
pub fn recommended_sort(&self) -> Vec<&'static str>
Get recommended algorithms for this pattern
Trait Implementations§
Source§impl Clone for DataPattern
impl Clone for DataPattern
Source§fn clone(&self) -> DataPattern
fn clone(&self) -> DataPattern
Returns a duplicate 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 DataPattern
impl Debug for DataPattern
Source§impl Hash for DataPattern
impl Hash for DataPattern
Source§impl PartialEq for DataPattern
impl PartialEq for DataPattern
impl Copy for DataPattern
impl Eq for DataPattern
impl StructuralPartialEq for DataPattern
Auto Trait Implementations§
impl Freeze for DataPattern
impl RefUnwindSafe for DataPattern
impl Send for DataPattern
impl Sync for DataPattern
impl Unpin for DataPattern
impl UnwindSafe for DataPattern
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