pub struct TanStackAutoResetQueue { /* private fields */ }Expand description
Explicit auto-reset queue that models TanStack’s _queue coalescing behavior.
Usage pattern:
- Keep this queue outside ephemeral
Tableinstances. - At the start of a render pass, call
begin_render_pass(). - When a derived row model is recomputed and would call TanStack
_autoReset*, call the correspondingauto_reset_*method (you may call it multiple times; it will coalesce). - At the end of the pass, call
flush(...)to apply any pending resets.
Implementations§
Source§impl TanStackAutoResetQueue
impl TanStackAutoResetQueue
Sourcepub fn begin_render_pass(&mut self)
pub fn begin_render_pass(&mut self)
Starts a new “render pass” (logical tick). Pending resets are cleared, registration is kept.
Sourcepub fn auto_reset_page_index<TData>(&mut self, table: &Table<'_, TData>)
pub fn auto_reset_page_index<TData>(&mut self, table: &Table<'_, TData>)
TanStack-aligned: queues _autoResetPageIndex() (register-first, coalesced).
Sourcepub fn auto_reset_expanded<TData>(&mut self, table: &Table<'_, TData>)
pub fn auto_reset_expanded<TData>(&mut self, table: &Table<'_, TData>)
TanStack-aligned: queues _autoResetExpanded() (register-first, coalesced).
Sourcepub fn flush<TData>(&mut self, table: &Table<'_, TData>, state: &mut TableState)
pub fn flush<TData>(&mut self, table: &Table<'_, TData>, state: &mut TableState)
Applies any pending auto resets to state (at most once per kind per render pass).
Notes:
- TanStack resets to
initialState, not the feature default state, so we usereset_*(default_state=false).
pub fn expanded_registered(&self) -> bool
pub fn page_index_registered(&self) -> bool
pub fn pending_expanded_reset(&self) -> bool
pub fn pending_page_index_reset(&self) -> bool
Trait Implementations§
Source§impl Clone for TanStackAutoResetQueue
impl Clone for TanStackAutoResetQueue
Source§fn clone(&self) -> TanStackAutoResetQueue
fn clone(&self) -> TanStackAutoResetQueue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TanStackAutoResetQueue
impl Debug for TanStackAutoResetQueue
Source§impl Default for TanStackAutoResetQueue
impl Default for TanStackAutoResetQueue
Source§fn default() -> TanStackAutoResetQueue
fn default() -> TanStackAutoResetQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TanStackAutoResetQueue
impl RefUnwindSafe for TanStackAutoResetQueue
impl Send for TanStackAutoResetQueue
impl Sync for TanStackAutoResetQueue
impl Unpin for TanStackAutoResetQueue
impl UnsafeUnpin for TanStackAutoResetQueue
impl UnwindSafe for TanStackAutoResetQueue
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