VirtualContext
struct · ferroui-dynamic-data · v0.5.0
struct VirtualContext<T>
The window of a change set of SortAndVirtualize, with the comparer and the options
(record VirtualContext<TObject>).
Members
response
response: super::VirtualResponse
The window (Response).
comparer
comparer: std::rc::Rc<dyn Fn(&T, &T) -> std::cmp::Ordering>
The comparer of the sort (Comparer).
options
options: super::SortAndVirtualizeOptions
The options (Options).
new
fn new(response: VirtualResponse, comparer: Rc<dyn Fn(&T, &T) -> Ordering>, options: SortAndVirtualizeOptions) -> Self
A context of its parts.
empty
fn empty() -> Self
where T: 'static
The context before any window (VirtualContext<TObject>.Empty).
Deviation (DEVIATIONS.md, DynamicData): its comparer finds every pair equal, as there is no
Comparer<TObject>.Default for every item.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClonePartialEqDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.