pub struct StoreTreeConn<T: 'static> { /* private fields */ }Expand description
StoreTree’s connection: the derived shape; values flow through the store’s own
per-field notifications, so an unchanged shape skips the native reload entirely.
Trait Implementations§
Source§impl<T: Identified + Clone + 'static> TreeConn for StoreTreeConn<T>
impl<T: Identified + Clone + 'static> TreeConn for StoreTreeConn<T>
type Slot = ModelSlot<T>
type Key = u64
Source§fn refresh(&self) -> Vec<(u64, Option<u64>)>
fn refresh(&self) -> Vec<(u64, Option<u64>)>
Refresh the snapshot and return the tree’s shape:
(token, parent) pairs in walk
order. A tracked read: the enclosing watch re-runs exactly when something this read
depends on changes.Source§fn tokens_now(&self) -> Vec<u64>
fn tokens_now(&self) -> Vec<u64>
Every token in the current snapshot, walk order, no refresh and no tracking.
fn children_len(&self, parent: Option<u64>) -> usize
fn child_token(&self, parent: Option<u64>, index: usize) -> u64
Source§fn parent_of(&self, token: u64) -> Option<Option<u64>>
fn parent_of(&self, token: u64) -> Option<Option<u64>>
Some(parent) for a known token (Some(None) = a root row), None for an unknown one.fn key_of(&self, token: u64) -> Option<u64>
Source§fn slot_for(&self, token: u64) -> Option<ModelSlot<T>>
fn slot_for(&self, token: u64) -> Option<ModelSlot<T>>
A fresh slot for
token (None on a stale mid-animation pull). Call inside the
row’s scope: plain-data slots allocate their signals here.Source§fn rebind(&self, slot: &ModelSlot<T>, token: u64)
fn rebind(&self, slot: &ModelSlot<T>, token: u64)
Point an existing slot at
token: the recycle write.Source§fn values_flow_by_reload(&self) -> bool
fn values_flow_by_reload(&self) -> bool
Whether row VALUES reach existing rows only through reload→rebind (see
RowConn::values_flow_by_reload).Auto Trait Implementations§
impl<T> !Freeze for StoreTreeConn<T>
impl<T> !RefUnwindSafe for StoreTreeConn<T>
impl<T> !Send for StoreTreeConn<T>
impl<T> !Sync for StoreTreeConn<T>
impl<T> !UnwindSafe for StoreTreeConn<T>
impl<T> Unpin for StoreTreeConn<T>
impl<T> UnsafeUnpin for StoreTreeConn<T>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more