BindingOptions
struct · ferroui-dynamic-data · v0.5.0
struct BindingOptions
The options of the binding of change sets to an observable collection (BindingOptions).
Members
reset_thresholduse_replace_for_updatesreset_on_first_time_loadDEFAULT_RESET_THRESHOLDDEFAULT_USE_REPLACE_FOR_UPDATESDEFAULT_RESET_ON_FIRST_TIME_LOADnewwith_allnever_fire_resetnever_fire_reset_withwith_reset_thresholdwith_use_replace_for_updateswith_reset_on_first_time_load
reset_threshold
reset_threshold: usize
The number of changes above which the collection is loaded again and a reset is raised
(ResetThreshold).
use_replace_for_updates
use_replace_for_updates: bool
Whether an update replaces the item in place, rather than removing and adding it
(UseReplaceForUpdates).
reset_on_first_time_load
reset_on_first_time_load: bool
Whether the first change set loads the collection with a reset (ResetOnFirstTimeLoad).
DEFAULT_RESET_THRESHOLD
const DEFAULT_RESET_THRESHOLD: usize
DefaultResetThreshold.
DEFAULT_USE_REPLACE_FOR_UPDATES
const DEFAULT_USE_REPLACE_FOR_UPDATES: bool
DefaultUseReplaceForUpdates.
DEFAULT_RESET_ON_FIRST_TIME_LOAD
const DEFAULT_RESET_ON_FIRST_TIME_LOAD: bool
DefaultResetOnFirstTimeLoad.
new
const fn new(reset_threshold: usize) -> Self
The options with the threshold and upstream's defaults for the others
(BindingOptions(int ResetThreshold)).
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)).
never_fire_reset
const fn never_fire_reset() -> Self
The options that never reset the collection (NeverFireReset(bool useReplaceForUpdates = true)).
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)).
with_reset_threshold
const fn with_reset_threshold(self: Self, reset_threshold: usize) -> Self
A copy with another threshold (with { ResetThreshold = .. }).
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 = .. }).
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 = .. }).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedEquivalent<K>CloneCopyDebugStructuralPartialEqPartialEqEqHashDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.