pub struct TreeState {
pub expanded: BTreeSet<u64>,
pub cur: Option<u64>,
pub marks: BTreeMap<u64, u32>,
}Expand description
the app-owned state of a tree: expanded nodes, current node
Fields§
§expanded: BTreeSet<u64>§cur: Option<u64>§marks: BTreeMap<u64, u32>app data per node (free use, e.g. a loading flag)
Trait Implementations§
Auto Trait Implementations§
impl Forget for TreeState
impl Freeze for TreeState
impl RefUnwindSafe for TreeState
impl Send for TreeState
impl Sync for TreeState
impl Unpin for TreeState
impl UnsafeUnpin for TreeState
impl UnwindSafe for TreeState
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