FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    NONE

    const NONE: Self
    

    No optimisation (None).

    Source

    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.

    Source

    IGNORE_EVALUATES

    const IGNORE_EVALUATES: Self
    

    A refresh does not move items: the collection is sorted again without moves (IgnoreEvaluates).

    Source

    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.

    Source

    bits

    const fn bits(self: Self) -> u32
    

    The flags as a number.

    Source

    has_flag

    const fn has_flag(self: Self, flag: Self) -> bool
    

    Whether every flag of flag is set (Enum.HasFlag).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Equivalent<K>
    • Clone
    • Copy
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • BitOr
    • BitOrAssign
    • BitAnd
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.