pub enum TreePatch {
Reload,
Expand(u64, bool),
Selected(Vec<u64>),
Reveal(u64),
}Expand description
Post-realize changes to a kinds::TREE host (docs/tree.md). Token-addressed
throughout; see crate::TreeSource for why indices cannot address tree rows.
Variants§
Reload
The node set changed (count/order/parentage/content): the host re-queries its
TreeSource. Expansion and selection survive by token (docs/tree.md).
Expand(u64, bool)
Programmatically disclose (true) or collapse (false) one row. Applied without
re-emitting crate::Event::TreeExpanded (the from-native echo rule).
Selected(Vec<u64>)
Programmatic selection sync (tokens; empty = clear), applied without re-emitting
crate::Event::TreeSelection.
Reveal(u64)
Scroll this row into view, realizing it if needed. The piece has already expanded the row’s ancestors (through the app’s expansion signal) before issuing this.
Trait Implementations§
impl StructuralPartialEq for TreePatch
Auto Trait Implementations§
impl Freeze for TreePatch
impl RefUnwindSafe for TreePatch
impl Send for TreePatch
impl Sync for TreePatch
impl Unpin for TreePatch
impl UnsafeUnpin for TreePatch
impl UnwindSafe for TreePatch
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