FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BindingOptions

    struct · ferroui-dynamic-data · v0.5.0

    struct BindingOptions
    

    The options of the binding of change sets to an observable collection (BindingOptions).

    View source

    Members

    reset_threshold

    reset_threshold: usize
    

    The number of changes above which the collection is loaded again and a reset is raised (ResetThreshold).

    Source

    use_replace_for_updates

    use_replace_for_updates: bool
    

    Whether an update replaces the item in place, rather than removing and adding it (UseReplaceForUpdates).

    Source

    reset_on_first_time_load

    reset_on_first_time_load: bool
    

    Whether the first change set loads the collection with a reset (ResetOnFirstTimeLoad).

    Source

    DEFAULT_RESET_THRESHOLD

    const DEFAULT_RESET_THRESHOLD: usize
    

    DefaultResetThreshold.

    Source

    DEFAULT_USE_REPLACE_FOR_UPDATES

    const DEFAULT_USE_REPLACE_FOR_UPDATES: bool
    

    DefaultUseReplaceForUpdates.

    Source

    DEFAULT_RESET_ON_FIRST_TIME_LOAD

    const DEFAULT_RESET_ON_FIRST_TIME_LOAD: bool
    

    DefaultResetOnFirstTimeLoad.

    Source

    new

    const fn new(reset_threshold: usize) -> Self
    

    The options with the threshold and upstream's defaults for the others (BindingOptions(int ResetThreshold)).

    Source

    with_all

    const fn with_all(reset_threshold: usize, use_replace_for_updates: bool, reset_on_first_time_load: bool) -> Self
    

    Every part (BindingOptions(int, bool, bool)).

    Source

    never_fire_reset

    const fn never_fire_reset() -> Self
    

    The options that never reset the collection (NeverFireReset(bool useReplaceForUpdates = true)).

    Source

    never_fire_reset_with

    const fn never_fire_reset_with(use_replace_for_updates: bool) -> Self
    

    never_fire_reset with the choice of replacements (NeverFireReset(bool)).

    Source

    with_reset_threshold

    const fn with_reset_threshold(self: Self, reset_threshold: usize) -> Self
    

    A copy with another threshold (with { ResetThreshold = .. }).

    Source

    with_use_replace_for_updates

    const fn with_use_replace_for_updates(self: Self, use_replace_for_updates: bool) -> Self
    

    A copy with another choice of replacements (with { UseReplaceForUpdates = .. }).

    Source

    with_reset_on_first_time_load

    const fn with_reset_on_first_time_load(self: Self, reset_on_first_time_load: bool) -> Self
    

    A copy with another choice of the first load (with { ResetOnFirstTimeLoad = .. }).

    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
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Default

    Availability

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