SortOptimisations
struct · ferroui-dynamic-data · v0.5.0
struct SortOptimisations
The optimisations of a sort of a cache ([Flags] enum SortOptimisations): a set of flags.
Members
NONE
const NONE: Self
No optimisation (None).
COMPARES_IMMUTABLE_VALUES_ONLY
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.
IGNORE_EVALUATES
const IGNORE_EVALUATES: Self
A refresh does not move items: the collection is sorted again without moves
(IgnoreEvaluates).
INSERT_AT_END_THEN_SORT
const INSERT_AT_END_THEN_SORT: Self
No longer used upstream; the value of both other flags (InsertAtEndThenSort, obsolete).
Deprecated. This is no longer being used. Use one of the other options instead.
bits
const fn bits(self: Self) -> u32
The flags as a number.
has_flag
const fn has_flag(self: Self, flag: Self) -> bool
Whether every flag of flag is set (Enum.HasFlag).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedEquivalent<K>CloneCopyDefaultStructuralPartialEqPartialEqEqHashBitOrBitOrAssignBitAndDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.