pub struct SortOptimisations(/* private fields */);Expand description
The optimisations of a sort of a cache ([Flags] enum SortOptimisations): a set of flags.
Implementations§
Source§impl SortOptimisations
impl SortOptimisations
Sourcepub const COMPARES_IMMUTABLE_VALUES_ONLY: Self
pub const COMPARES_IMMUTABLE_VALUES_ONLY: Self
The comparer reads values that never change, so the current position of an item is found
with a binary search (ComparesImmutableValuesOnly). The comparer must also give each item
a unique position.
Sourcepub const IGNORE_EVALUATES: Self
pub const IGNORE_EVALUATES: Self
A refresh does not move items: the collection is sorted again without moves
(IgnoreEvaluates).
Sourcepub const INSERT_AT_END_THEN_SORT: Self
👎Deprecated: This is no longer being used. Use one of the other options instead.
pub const INSERT_AT_END_THEN_SORT: Self
This is no longer being used. Use one of the other options instead.
No longer used upstream; the value of both other flags (InsertAtEndThenSort, obsolete).
Trait Implementations§
Source§impl BitAnd for SortOptimisations
impl BitAnd for SortOptimisations
Source§impl BitOr for SortOptimisations
impl BitOr for SortOptimisations
Source§impl BitOrAssign for SortOptimisations
impl BitOrAssign for SortOptimisations
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for SortOptimisations
impl Clone for SortOptimisations
impl Copy for SortOptimisations
Source§impl Debug for SortOptimisations
impl Debug for SortOptimisations
Source§impl Default for SortOptimisations
impl Default for SortOptimisations
impl Eq for SortOptimisations
Source§impl Hash for SortOptimisations
impl Hash for SortOptimisations
Source§impl PartialEq for SortOptimisations
impl PartialEq for SortOptimisations
impl StructuralPartialEq for SortOptimisations
Auto Trait Implementations§
impl Freeze for SortOptimisations
impl RefUnwindSafe for SortOptimisations
impl Send for SortOptimisations
impl Sync for SortOptimisations
impl Unpin for SortOptimisations
impl UnsafeUnpin for SortOptimisations
impl UnwindSafe for SortOptimisations
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