pub struct SortAndBindOptions {
pub reset_threshold: usize,
pub use_replace_for_updates: bool,
pub use_binary_search: bool,
pub initial_capacity: Option<usize>,
pub reset_on_first_time_load: bool,
pub scheduler: Option<Rc<dyn IScheduler>>,
}Expand description
The options of SortAndBind (SortAndBindOptions).
Fields§
§reset_threshold: usizeThe number of changes above which the target is loaded again; 0 never (ResetThreshold).
use_replace_for_updates: boolWhether an update that keeps its position replaces the item in place
(UseReplaceForUpdates).
use_binary_search: boolWhether the positions are found by a binary search, which needs a comparer that tells every
item apart (UseBinarySearch).
initial_capacity: Option<usize>The initial capacity of the collection that SortAndBind creates; None for the default
(InitialCapacity, -1).
reset_on_first_time_load: boolWhether the first change set loads the target with a reset (ResetOnFirstTimeLoad).
scheduler: Option<Rc<dyn IScheduler>>The scheduler on which the changes are observed, if any (Scheduler).
Trait Implementations§
Source§impl Clone for SortAndBindOptions
impl Clone for SortAndBindOptions
Source§impl Debug for SortAndBindOptions
impl Debug for SortAndBindOptions
Auto Trait Implementations§
impl !RefUnwindSafe for SortAndBindOptions
impl !Send for SortAndBindOptions
impl !Sync for SortAndBindOptions
impl !UnwindSafe for SortAndBindOptions
impl Freeze for SortAndBindOptions
impl Unpin for SortAndBindOptions
impl UnsafeUnpin for SortAndBindOptions
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