pub trait TreeItem {
// Required methods
fn id(&self) -> &str;
fn display_name(&self) -> &str;
fn is_expandable(&self) -> bool;
// Provided method
fn icon(&self) -> &str { ... }
}Expand description
Trait for items that can be displayed in a tree structure
Required Methods§
Sourcefn display_name(&self) -> &str
fn display_name(&self) -> &str
Display name for this item
Sourcefn is_expandable(&self) -> bool
fn is_expandable(&self) -> bool
Whether this item can have children (is expandable)