CellModelPool
struct · ferroui-controls-treedatagrid · v0.5.0
struct CellModelPool
The cells of the columns of a presentation suspended for reuse (CellModelPool<TModel>).
Members
MAXIMUM_CELLS
const MAXIMUM_CELLS: usize
The most cells the pool keeps (MaximumCells).
new
fn new() -> Self
touch_column
fn touch_column(self: &mut Self, column: &ColumnRef) -> bool
Whether the pool has a bucket for column (_columns.TryGetValue); a hit makes the bucket
the most recently used one.
pop
fn pop(self: &mut Self, column: &ColumnRef) -> Option<CellRef>
Removes the most recently pooled cell of column (node.Value.Cells.Pop()).
add
fn add(self: &mut Self, column: &ColumnRef, cell: CellRef, evicted: &mut Vec<CellRef>)
Keeps a suspended cell for column (the second half of TryAdd); the cells evicted to
keep the pool within its bounds are added to evicted, for the caller to dispose.
clear
fn clear(self: &mut Self) -> Vec<CellRef>
Removes every cell (Clear); returns them for the caller to dispose.
count
fn count(self: &Self) -> usize
The number of cells kept.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.