pub struct TreeState {
pub nodes: Vec<TreeNode>,
pub selected: usize,
}Expand description
State for a hierarchical tree view widget.
Fields§
§nodes: Vec<TreeNode>Root nodes of the tree.
selected: usizeSelected row index in the flattened visible tree.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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