pub struct TreeItem {
pub id: String,
pub label: Text,
pub icon: Option<Icon>,
pub open: Option<bool>,
pub children: Vec<Self>,
}Expand description
A tree item.
Fields§
§id: StringIdentity, unique in the tree.
label: TextThe row’s text.
icon: Option<Icon>An icon before the label.
open: Option<bool>Whether the children show.
children: Vec<Self>Nested items.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TreeItem
Auto Trait Implementations§
impl Freeze for TreeItem
impl RefUnwindSafe for TreeItem
impl Send for TreeItem
impl Sync for TreeItem
impl Unpin for TreeItem
impl UnsafeUnpin for TreeItem
impl UnwindSafe for TreeItem
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