VirtualRequest
struct · ferroui-dynamic-data · v0.5.0
struct VirtualRequest
A request of a window of sorted items (VirtualRequest): the index of the first item and the
number of items.
Deviation (DEVIATIONS.md, DynamicData): the index and the size are usize, so a negative
request, which the operators ignore upstream, cannot be made. Two requests are equal when their
parts are (VirtualRequest.StartIndexSizeComparer).
Members
DEFAULT
const DEFAULT: Self
The first 25 items (VirtualRequest.Default, new VirtualRequest()).
new
const fn new(start_index: usize, size: usize) -> Self
The size items from start_index (VirtualRequest(int startIndex, int size)).
size
const fn size(self: &Self) -> usize
The number of items (Size).
start_index
const fn start_index(self: &Self) -> usize
The index of the first item (StartIndex).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringEquivalent<K>CloneCopyDebugStructuralPartialEqPartialEqEqHashDefaultIVirtualRequestDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.