pub struct TreeNode {
pub label: String,
pub children: Vec<TreeNode>,
pub expanded: bool,
}Expand description
A node in a tree view.
Fields§
§label: StringDisplay label for this node.
children: Vec<TreeNode>Child nodes.
expanded: boolWhether the node is expanded in the tree view.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeNode
impl RefUnwindSafe for TreeNode
impl Send for TreeNode
impl Sync for TreeNode
impl Unpin for TreeNode
impl UnsafeUnpin for TreeNode
impl UnwindSafe for TreeNode
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